Check if sizing is available
We have two callbacks available to handle scenarios around the fact a product code is available in our database which controls if our sizing is available or not.
note
You only need this if you are not using the ready made button widget, because that has the code check already integrated.
Of course if you would like to do something addtional to just showing "sizing unavailable" on the button, you may of course use this config option.
Sizing Available
Use case
I'm using my own custom button element, which is hidden on page load and I would like to show that to the user if sizing is available for this product code.
Consider this example for that use case:
The payload passed to your function looks like this:
Sizing NOT available
Use case
I would like to trigger a custom interaction when sizing is not available. For example: show a sizing chart instead if the sizing button.
Consider this example for that use case:
The payload passed to your function looks like this: