Add price attribute
info
We recommend to pass the price of the desired bike of the customer to allow the filter to work best.
Good to know
Even if the price is not transmitted via the price attribute, we can often find the price of the desired bike from the product feed. In many cases, bikes that are no longer in stock do not appear in the product feed. So how do you know the price? Often the bike is not out of stock in every size, so we check if one of the sizes of the bike you want is available in the product feed and consider that price .
If you have an existing implementation of the Online Sizing Widget you may need to add the price attribute the button code.
Just add the data-oz-price
attribute to the button and pass the price as a number (float).
Default Button
- Code
- Example
<div
class="oz-container"
data-oz-widget="launcher"
data-oz-code="{{ product.ean }}"
data-oz-name="{{ product.title }}"
data-oz-image="{{ product.image.src }}"
data-oz-price="{{ product.price }}"
></div>
<div
class="oz-container"
data-oz-widget="launcher"
data-oz-code="8053323623809"
data-oz-name="Cinelli Veltrix Potenza Road Bike 2020"
data-oz-image="https://cdn.bike24.net/i/mb/a2/62/2d/301915-00-d-617909.jpg"
data-oz-price="2699.0"
></div>
Custom Button
- Code
- Example
<button
id="my-custom-oz-button"
class="oz-trigger"
data-oz-code="{{ product.ean }}"
data-oz-name="{{ product.title }}"
data-oz-image="{{ product.image.src }}"
data-oz-fullscreen="true"
data-oz-price="{{ product.price }}"
>
What's my size?
</button>
<button
id="my-custom-oz-button"
class="oz-trigger"
data-oz-code="8053323623809"
data-oz-name="Cinelli Veltrix Potenza Road Bike 2020"
data-oz-image="https://cdn.bike24.net/i/mb/a2/62/2d/301915-00-d-617909.jpg"
data-oz-fullscreen="true"
data-oz-price="2699.0"
>
What's my size?
</button>