We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to add custom scripts on checkout using extension

How to add custom scripts on checkout using extension

chandni-handa
Shopify Partner
10 0 1
Hi,

Could any one help me on this?

In my Shopify Plus store checkout.liquid file there is third party URLs and custom JS code is added. So the checkout.liquid file is going to deprecate. So where I can add these third party JS URLs and custom JS script code? I am trying to do this with Shopify Checkout UI extension but it didn't work me. Also I tried the web pixels extension still didn't work.

Here are the attachments URLs please check and let me know which extension or other method I use to add/move these code


Thanks
Replies 9 (9)

PurplePartner
Shopify Partner
195 18 34

Hi @chandni-handa,

 

Have you tried adding the snippets directly in the Checkout through a Custom Liquid block? You can add one from the Theme Customizer.

Did you find my response useful? Mark it as "Accepted solution" so others can see it, or just like it.
chandni-handa
Shopify Partner
10 0 1

Hi @PurplePartner 


Yes, But checkout.liquid is going to deprecate. So where I add/move this code? 

PurplePartner
Shopify Partner
195 18 34

With Checkout Extensibility, you should be able to use the Checkout Editor to add the code. It's part of the update and not related to checkout.liquid at all.

Did you find my response useful? Mark it as "Accepted solution" so others can see it, or just like it.
chandni-handa
Shopify Partner
10 0 1

Thanks @PurplePartner for reaching here on this

Could you please share any example to use the Checkout Editor to add the code? So that I can implement on the Checkout UI extension.


PurplePartner
Shopify Partner
195 18 34

You need to reach out to a professional able to develop a custom app or use an app to add a block in the Checkout Editor. Using that custom block you can use your code.

 

Thanks!

Did you find my response useful? Mark it as "Accepted solution" so others can see it, or just like it.
chandni-handa
Shopify Partner
10 0 1

Okay Thanks

PurplePartner
Shopify Partner
195 18 34

You're welcome! Make sure to like the reply or mark it as a solution if it helps.

 

Thanks, Chandni!

Did you find my response useful? Mark it as "Accepted solution" so others can see it, or just like it.
chandni-handa
Shopify Partner
10 0 1

I am still looking solution for this.

kamranhashmi499
Shopify Partner
1 0 0

Did you find a solution?