LemonStand Documentation

Shop_BundleItemProduct

The Shop_BundleItemProduct represents a product record in a bundle item. Usually you will not need to work with objects of this class directly, because Bundle Helper class has methods which incapsulate all low level stuff.

Class fields

  • $product_id - identifier of a product (Shop_Product) associated with this bundle item product record.
  • $default_quantity - default product quantity. Integer value.
  • $allow_manual_quantity - determines whether manual quantity input is allowed for this product. Boolean value.
  • $is_default - determines whether this product is a default product in the bundle item. Boolean value.
  • $bundle_item - a reference to the parent bundle item (Shop_ProductBundleItem).
  • $product - a reference to product (Shop_Product) associated with this bundle item product record.

Class methods

  • get_price($product = null) - returns the bundle item product price. Takes into account the price mode settings applied to the product. Applies the tax if it is required by the configuration. The optional $product parameter represents a currently selected product object. If no object provided, the product assigned to the item will be used.
  • get_price_no_tax($product = null, $quantity = 1, $customer_group_id = null) - returns the bundle item product price without any taxes applied. The optional $product parameter represents a currently selected product object. If no object provided, the product assigned to the item will be used. $quantity parameter represents the product quantity ordered. $customer_group_id is an identifier of a customer group to calculate the price for.

Next: Shop_BundleHelper
Previous: Cms_Page
Return to Reference