I’ve developed an app and now I want to use it to inject a custom JavaScript script into the checkout page.
Please advice, thanks in advance.
Goal: add a custom JavaScript snippet to the checkout via an app.
Key update: Direct JS injection into checkout is not allowed for stores using Checkout Extensibility. Instead, a Checkout UI extension must be created and added through the Checkout Editor.
Context: Checkout UI extensions are app-based components that integrate with defined extension points in the checkout, providing sanctioned ways to customize behavior and UI without arbitrary scripts.
Open questions from the author:
Status: No responses yet to the Laravel compatibility or the API approach; discussion remains open.
I’ve developed an app and now I want to use it to inject a custom JavaScript script into the checkout page.
Please advice, thanks in advance.
Hi Ashishgaur,
It’s not possible to inject JS scripts onto checkout pages that are migrated to checkout extensibility. You’ll have to create a Checkout UI extension that can be added to a checkout page via the checkout editor.
Thanks Liam,
I’m a Laravel developer and have built an app using Laravel. Can I use Laravel to create a Checkout UI extension for Shopify?
If that’s not possible, is there a way to programmatically set the “shipping method notice” text field via API or during the app installation process?