Discussions
Try now cta only works if I click the variant once and then switch product.
about 2 months ago by Haroon
We are using Try now cta from app blocks in our pdp. our pdp uses section rendering api to change the product without refreshing the page. we did two things
- After switching reinitialize the cta using this documentation https://how.trynow.works/docs/initialization
- When a variant is clicked recalculate the button state using this documentation https://how.trynow.works/docs/variant-changes
Now if variant is clicked and then product is changed it works but if we change the product without clicking on any variant of previous product, the CTA donot work on newly fetched product. here is the preview
https://lygpwatjo5tmkpio-15438719.shopifypreview.com/products/antelopes-forest-long-sleep-set-ruby