Class: CartDiscountDrop

Inherits:
Liquid::Simplero::Drop show all
Defined in:
app/drops/cart_discount_drop.rb

Overview

CartDiscountDrop represents a discount applied to a cart.

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Constructor Details

#initialize(cart_item, product, code, amount) ⇒ CartDiscountDrop

Returns a new instance of CartDiscountDrop.

Instance Method Details

#amountMoneyDrop

The amount of the discount.

Returns:

#codeString

The coupon code.

Returns:

  • (String)

#itemCartItemDrop

The CartItemDrop this discount applies to. May be nil in the case of an order bump.

Returns:

#productCartItemDrop

The ProductDrop this discount applies to.

Returns: