Skip to content

ProductBundle

The ProductBundle object represents a bundle type of product.

classDiagram
  ProductBundle --> Product
  ProductBundle --> ProductBundleItemsList
  ProductBundle --> Price
  class Product{
  }
  class ProductBundleItemsList{
  }
  class ProductBundle{
    Product product
    ProductBundleItemsList items
    ?Price originalItemsPrice
  }

Properties

Attribute name Type Description
product Product The Product object that represents our bundle.
items ProductBundleItemsList Reference to the ProductBundleItemsList object that represents the list of BundleItem objects associated with this bundle.
originalItemsPrice null | Price Original items price represented by a Price Object.
hasItemWithNotStockOption bool Indicates if bundle has item with options without warehouse control (non-stock options).

Examples

product property

{{ productBundle.product.name }}
Samsung Starter Kit

items property

{% for item in productBundle.items %}
    Item quantity: {{ item.quantity }}<br>
{% endfor %}
Item quantity: 5
Item quantity: 2

originalItemsPrice property

{{ productBundle.originalItemsPrice.formatGross }}
$32.45