For the complete documentation index, see llms.txt. This page is also available as Markdown.

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" event

Last updated

Was this helpful?