shop

This will pull back all product data from the Control Panel.

The main use-case of this is to create a product catalog content page

<div data-pv-component="commerce" data-pv-type="shop" data-pv-object="abc">
    // Some code
</div>

Common HAPI elements used within the <div>:

  • {@product.product_no@} - this will return the product no

  • {@product.main_photo@} - this will return the main photo for the product

  • {@product.product_long@} - this will return the product name

  • {@product.product_description@} - this will return the product description

  • {@pricing.price@} - this will return the product price

Common data-pv-parameters used within the <div>:

  • includeBundleItems: true

  • includeProudctVariations: true

  • category_no: '999'

  • returntotal: '999'

Last updated