Class: CartItemDrop

Inherits:
Liquid::Simplero::Drop show all
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

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#count_of_other_people_with_this_product_in_cart ⇒ Integer

Returns:

  • (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.

Returns:

  • (String)

#price ⇒ PriceDrop

Returns:

#product ⇒ ProductDrop

Returns:

#quantity ⇒ Integer

Returns:

  • (Integer)

#update_url ⇒ Object