Render snippet not working in checkout.liquid

Hi all,

We have 2 site using the simple GTM snippet, but one site renders normally the other site shows nothing for the snippet at all.

  • site with render snippet

  • site with no render snippet

We’d love to know the following:

  1. How we can debug for render?

  2. What would be the possible reason that might doesn’t work?

  3. We have multiple render snippet in checkout.liquid, if one of the snippet has error, would it affect other snippet to render?

We are new to Shopify and this community, please let me know if lack any information, and much appreciated for any help. :slightly_smiling_face:

Layout/checkout.liquid


  
  {% render 'elevar-head' %}
    
    
...
  {% render 'other-part' %}
...

Snippets/elevar-head.liquid


Hi @GloriaL , if you are not on Shopify Plus, you don’t have a direct access to checkout.liquid.
Go to settings > checkout and look for additional scripts, this is the place where you should add piece of code. :slightly_smiling_face:

Hi @MarinaPetrovic ,

Thank you for the fast response. :blush:

Yes, we are using the Shopify Plus, the checkout.liquid works properly only except the extra render snippet we added in the header.

Do you have any information regarding that?

Please make sure that you have your checkout.liquid file enabled by the Shopify. Occasionally during theme copy the file might show up in your library, but it does not allow actually render anything if not being enabled.

Hi ALLU,

Thank you so much for the answer. Yes, that’s exactly what happens.

We have reached out to the Elevar support, with their help to check, it turns out that our client copied the theme from the other site, so we did see a checkout.liquid but the functionality was not enabled.

After helping our client to enable the checkout functionality, everything works fine. :slightly_smiling_face: