For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
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
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!
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