Discussions

Ask a Question
Back to All

Try now cta only works if I click the variant once and then switch product.

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

  1. After switching reinitialize the cta using this documentation https://how.trynow.works/docs/initialization
  2. 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