Add Update widget function
info
Almost every shop uses product variants. If your shop uses product variants on the product page (e.g. different colors, different frame shapes etc.) make sure to udpate the button configuration to request always the correct product code.
Depending on the shop system you might need to use our helper function updatewidgetConfigurations
Check if product variant is udpated correctly
- Select first variant and open the developer tools in your browser.
- Make sure the image shown in the widget matches the selected variant.
- Click through the widget until you see the recommended size.
- Find the requested product code in the developer tools and make sure it matches the selected variant.
- Close the widget.
- Select another product variant and repeat the steps 2-4.
important
If your shop system does not update the button configuration automatically on a variant change (requested code in step 4 does not match with selected variant after variant change) you need to setup our helper function that you will find here. This function should be fired on variant change.