Shopify Additional Payments Buttons cannot be rendered from App Blocks

Shopify Additional Payments Buttons cannot be rendered from App Blocks

MiN1One
Shopify Partner
4 0 0

Hi, I have a trouble rendering additional payment buttons through our app extensions' liquid file. I want to give users an ability to add payment buttons via our application. When I render blocks from store's theme blocks using 

Click to expand...

these are working fine but when I render the same way on extension blocks they are not shown.

 

Is there any way I can render these buttons specifically on extensions? Thanks!

Replies 2 (2)

Liam
Community Manager
3108 340 873

Hi MiniOne,

 

On our documentation, it's stated that you can't render accelerated checkout buttons through AJAX requests, including those through Se.... The buttons are added by JavaScript included by Shopify through the content_for_header object, which only runs on the initial page load.

 

Unfortunately, it seems there is no direct way to render these buttons specifically on extensions. You might have to consider a different approach to provide this functionality.

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

MiN1One
Shopify Partner
4 0 0

Thank you for your reply @Liam ! Could you suggest any other way?