data-lion-price-for-product-id
, must be added to an element whose text content is the price of the product. The value of this attribute should be equal to the ID of the product.
The second attribute, data-lion-points-for-product-id
, sets the innerHTML of its element to the computed points value of the matching data-lion-price-for-product-id
attribute on the page.
data-lion-price-for-product-id
to an element containing the price of the product.
data-lion-points-for-product-id
where you want to show how many points a customer earns for buying this product.