fix: add cart services stub for product blueprint dependency
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:
giles
2026-02-10 01:16:00 +00:00
parent 601a696ecb
commit efe769a0fc
3 changed files with 7 additions and 0 deletions

0
bp/cart/__init__.py Normal file
View File

View File

@@ -0,0 +1 @@
from .total import total

View 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
)