Caching template url works but updating it gives an error

davidzupecdavidzupec Member
in Help edited June 2013
When I cache my template url everything is fine. But when I click update template I keep getting this error message: Your template was not saved because there was an error in your Twig template syntax: Unclosed comment in "TEMP_checkout_template.twig" at line 689

I thought this was easy but I keep getting this error. Any help would be appreciated. Thank you!
  • I think I solved this. Seems that Modernizr is causing the conflict. I link out to it in my header file like this:

    <script src="<?php bloginfo('template_url');?>/js/libs/modernizr-2.5.0.min.js"></script>

    Looks like I'll need to remove Modernizr on my checkout page.
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    Just put this around modernizer:
    {% raw %}

    {% endraw %}

    And then display those only on your checkout template and you'll be fine.
Sign In or Register to comment.