1. Curtis Maloney
  2. gnocchi-catalogue

Source

gnocchi-catalogue / catalogue / cart.py

cur...@tinbrain.… 9b89ce3 









from session_cart import cart

class CartItem(cart.CartItem):
    '''cart item customised for our products'''
    def unit_price(self):
        return self.item.product.get_price(self.quantity)

    def total(self):
        return self.item.product.get_price(self.quantity) * self.quantity