If you have a product that can be purchased in different variants, you will need to refresh the content of your placements dynamically each time the shopper changes the variant. Our placements offer a simple way to refresh the content of your placements: Simply update the relevant data attribute of the placement (Documentation Index
Fetch the complete documentation index at: https://docs.gocertify.me/llms.txt
Use this file to discover all available pages before exploring further.
data-purchase-amount).
You can do it with this little snippet of JavaScript:
data-purchase-amount data attribute is updated.
If you are also using custom variables in your placements, you will need to update them and then trigger the refresh manually, using the refresh function.
For example, let’s say you are using the category variable in your placement, and you want to refresh the placement when the shopper changes the category:
id of the specific placement you want to refresh, you can do it with a single line of JavaScript: