Class: ProductDrop

Inherits:
Liquid::Simplero::Drop show all
Includes:
ShareableDropConcerns
Defined in:
app/drops/product_drop.rb

Overview

ProductDrop represents a product for sale. It is available as product on product-specific pages and as the collection products on product listing pages.

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#attachments ⇒ AttachmentDrop

Returns:

#available? ⇒ Boolean

Returns:

  • (Boolean)

#available_and_in_stock? ⇒ Boolean

Returns:

  • (Boolean)

#card_image ⇒ AssetDrop

Returns:

#cartable? ⇒ Boolean

Returns:

  • (Boolean)

#cartable_prices ⇒ Array<PriceDrop>

Returns:

#count_of_other_people_with_this_product_in_cart ⇒ Integer

Returns:

  • (Integer)

#courses ⇒ CourseDrop

Returns:

#free? ⇒ Boolean

Returns:

  • (Boolean)

#has_sales_page? ⇒ Boolean

Returns:

  • (Boolean)

#id ⇒ Integer

Returns:

  • (Integer)

#internal_name ⇒ String

Returns:

  • (String)

#labels ⇒ Object

#long_description ⇒ String

Returns:

  • (String)

#name ⇒ String

Returns:

  • (String)

#post_order_form_content ⇒ String

Content to show below this product's order form.

Returns:

  • (String)

#pre_order_form_content ⇒ String

Content to show above this product's order form.

Returns:

  • (String)

#prelaunch? ⇒ Boolean

Returns:

  • (Boolean)

#price ⇒ PriceDrop

Returns:

#prices ⇒ Array<PriceDrop>

Returns:

#purchase_url ⇒ String

Returns:

  • (String)

Returns Public, available, and cartable ProductDrops related to the current ProductDrop, minus those already in the cart. @