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);
});
"Product option changed" eventchevron-right

Last updated

Was this helpful?