Track product option changes on the storefront
What's new
A new JS API event lets you track changes to selected product options in real time on the storefront.
Changes in API
New JS API event:
Ecwid.OnProductSelectedOptionsChanged.add((payload) => {
console.log(payload.productId);
console.log(payload.previousOptions);
console.log(payload.newOptions);
});Documentation links
"Product option changed" eventLast updated
Was this helpful?
