Render Accelerated checkout buttons via AJAX

Render Accelerated checkout buttons via AJAX

ryan99
Shopify Partner
32 3 13

Is there a way to trigger the Accelerated checkout buttons render via javascript? Or some other workaround to get the buttons rendered on components rendered via ajax?

 

The docs say its not possible but there must be a workaround. And it seems like it should be easy for Shopify to add an official api to do this. Many themes use Ajax to render a cart or mini cart, which is prime real-estate for the accelerated checkout. Shopify is pushing ShopPay pretty hard, make it easy for us to use!

Reply 1 (1)

BogdanRG
Shopify Partner
2 0 0

THIS! 

How can an accelerated button be added to HTML and work? If it's done now, it's going to stay disabled.