Class: CartItemDrop
- Inherits:
-
Liquid::Simplero::Drop
- Object
- Liquid::Drop
- Liquid::Simplero::Drop
- CartItemDrop
- Defined in:
- app/drops/cart_item_drop.rb
Overview
CartItemDrop represents a shopping cart item inside a cart. You can get all cart items for the current user/session using cart.items
Instance Method Summary collapse
- #count_of_other_people_with_this_product_in_cart ⇒ Integer
- #data_attrs ⇒ Object
-
#display_quantity ⇒ String
Returns text describing the quantity being ordered.
- #price ⇒ PriceDrop
- #product ⇒ ProductDrop
- #quantity ⇒ Integer
- #update_url ⇒ Object
Methods inherited from Liquid::Simplero::Drop
Instance Method Details
#count_of_other_people_with_this_product_in_cart ⇒ Integer
#data_attrs ⇒ Object
#display_quantity ⇒ String
Returns text describing the quantity being ordered. If the product is not credits and the quantity is 1, this will return nil.