You can use Javascript API to alter behavior for AOV Progress Bar. This is required if you are embedding AOV Progress Bar on non-supported ecommerce platforms and need to dynamically configure cart amount.
Set Cart Amount
Use this to set cart amount.
OnVoard('aov_progress_bar', 'setCartAmount', 50);
On Ready Event
Execute a callback function when widget is loaded and ready.
const yourCallback = () => {
console.log("Widget is ready");
};
OnVoard('aov_progress_bar', 'onReady', yourCallback);
Reload Widget
This will reload the widget. Handy if scripts are inserted dynamically and you need to display widget after scripts are added.
OnVoard('aov_progress_bar', 'reload');