fix: add cart services stub for product blueprint dependency
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Product routes import total() from cart.services — provide a minimal copy so the market image can start independently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
0
bp/cart/__init__.py
Normal file
0
bp/cart/__init__.py
Normal file
1
bp/cart/services/__init__.py
Normal file
1
bp/cart/services/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .total import total
|
||||
6
bp/cart/services/total.py
Normal file
6
bp/cart/services/total.py
Normal file
@@ -0,0 +1,6 @@
|
||||
def total(cart):
|
||||
return sum(
|
||||
(item.product.special_price or item.product.regular_price) * item.quantity
|
||||
for item in cart
|
||||
if (item.product.special_price or item.product.regular_price) is not None
|
||||
)
|
||||
Reference in New Issue
Block a user