Search code examples
e-commercetemplatingbigcommerceplatform

Bigcommerce commenting out %%GLOBAL_productDetail%%


For Bigcommerce, I am wondering how to comment out global variable that renders dynamic content onto the page.

I tried the following, but no cigar.

<!-- %%GLOBAL_productDetail%%-->

Solution

  • BigCommerce's template engine will ignore HTML comments like that, and mostly in part due to the fact they often use HTML comments themselves which have an affect on the one you're trying to invoke.

    You will need to use jQuery to remove it from the DOM on load, or remove the tag entirely.

    Hope this helps.