Use the code below if you wish to add click events for the subscribe & save radio button for the subscription widget:
SellingPlanSelected
document.addEventListener('AppstleSubscription:SubscriptionWidget:SellingPlanSelected', function() {
console.log('SellingPlanSelected');
});
SellingPlanRemoved
document.addEventListener('AppstleSubscription:SubscriptionWidget:SellingPlanRemoved', function() {
console.log('SellingPlanRemoved');
})
widgetInitialised
document.addEventListener('AppstleSubscription:SubscriptionWidget:widgetInitialised', function() { // WRITE CODE HERE })
โ