CartItem Object¶
-
class
shoppingCart.cart.CartItem(cart, product, price, quantity, taxes=[], options={})[source]¶ Collection of
Productand it’s quantity, taxes and options.-
update_quantity(quantity)[source]¶ To update existing quantity related to
Productobject.Parameters: quantity – Product quantity.
-
sub_total()[source]¶ Returns: Total amount by multiplying product price and quantity(without discount deduction).
-
total()[source]¶ Returns: Total amount(tax excluded or tax included) by adding untaxed and taxed amount.
-
has_options¶ Returns: True if product has an option else False.
-
has_taxes¶ Returns: True if product has tax else False.
-
price¶ Returns: Price by multiplying currency rate.
-