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>
7 lines
229 B
Python
7 lines
229 B
Python
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
|
|
)
|