Skip to main content
Old BigCommerce Blueprint snippets

Find our old Blueprint snippets, that were available November 27, 2017 - September 25, 2018

Paulius avatar
Written by Paulius
Updated over a year ago

These snippets were created for BigCommerce Blueprint themes. If you currently have one of them, we recommend upgrading to our new Blueprint snippets.

These snippets are here for the reference so you were aware of what exactly should be replaced with the new ones. We suggest doing the following:

This way you will not mix them up and everything will be working properly. Please go to Store settings > Connected store for a full setup wizard.

These snippets had been valid until September 25, 2018. Here are the new snippets, if you want to replace them. We do not suggest to continue using the old snippets as the following features will not be supported:

  • Sales tracking

  • Cart Recovery

  • Live View

  • Product Picker

  • Forms

IMPORTANT: if you are changing the template, you will need to add these snippets again. Do not add old and new snippets at a time (Blueprint and Stencil), neither of them will work in such case. 

Not sure, which theme you're using? Check BigCommerce guide to find out.
​ 

Adding the snippets

IMPORTANT: you need to replace the shop ID (currently XXXXXX) with your store's shop ID. Otherwise the code will not work. You can find your store's shop ID in the address bar when you are logged into your store's control panel.
​ 

1. GOOGLE ANALYTICS TAB

  • Go to Advanced Settings > Web Analytics, then open the Google Analytics tab. Copy and paste the code below.

  • If Google Analytics (GA) tracking code is already added there,  Omnisend sales tracking code should be placed below GA tracking tag. 

<script type="text/javascript">
    // SOUNDEST-V5-1
    // Do not remove these comments, they are super important!
    window.SOUNDEST = window.SOUNDEST || {};
    // Do not forget to replace XXXXXX with your shop ID! You can find it in your shop's permanent address: https://store-XXXXXX.mybigcommerce.com/. How to find it: https://goo.gl/1XddvQ
    SOUNDEST.shopID = "XXXXXX";
    SOUNDEST.shopType = "bigcommerce";
    SOUNDEST.eventsHost = "https://events.soundestlink.com/";
    (function(e,n,a){try{if(e.length>0&&n.length>0&&a.length>0){var t=!0,o=null,d=[],r=function(){if(!t&&d.length>0){for(var o=0;o<d.length;o++){var r=document.createElement("img"),i=["timestamp="+(new Date).getTime(),"shopBaseURL="+window.location.protocol+"//"+window.location.hostname+"/","shopID="+e,"shopType="+n,"orderID="+d[o],"source=ga"];r.src=a+"events/saveNewsletterOrder/?"+i.join("&"),document.body.appendChild(r)}d=[]}};if(void 0!==window.pageTracker){var i=window.pageTracker._addTrans,c=window.pageTracker._addItem,s=window.pageTracker._trackTrans;window.pageTracker._addTrans=function(e){o=e,i.apply(this,arguments)},window.pageTracker._addItem=function(e){o=e,c.apply(this,arguments)},window.pageTracker._trackTrans=function(){void 0!==o&&null!==o&&-1===d.indexOf(o)&&d.push(o),o=null,r(),s.apply(this,arguments)}}else window.pageTracker={_addTrans:function(e){o=e},_addItem:function(e){o=e},_trackTrans:function(){void 0!==o&&null!==o&&-1===d.indexOf(o)&&d.push(o),o=null,r()}};"loading"!==document.readyState?(t=!1,r()):document.addEventListener?document.addEventListener("DOMContentLoaded",function(){t=!1,r()}):document.attachEvent("onreadystatechange",function(){"loading"!==document.readyState&&(t=!1,r())})}}catch(n){}})(SOUNDEST.shopID,SOUNDEST.shopType,SOUNDEST.eventsHost);
</script>

2. Panels/Footer.html

<div id="soundest-container"></div>
<script type="text/javascript">
    // SOUNDEST-V5-2-B
    // Do not remove these comments, they are super important!
    window.SOUNDEST = window.SOUNDEST || {};
    // Do not forget to replace XXXXXX with your shop ID! You can find it in your shop's permanent address: https://store-XXXXXX.mybigcommerce.com/. How to find it: https://goo.gl/1XddvQ
    SOUNDEST.shopID = "XXXXXX";
    SOUNDEST.shopType = "bigcommerce";
    SOUNDEST.baseURL = "https://omnisrc.com/";
    SOUNDEST.version = new Date().toISOString().slice(0, 13);
    SOUNDEST.productID = SOUNDEST.productID || "";
    SOUNDEST.additionalData = SOUNDEST.additionalData || {};
    SOUNDEST.additionalData.email = "%%GLOBAL_CurrentCustomerEmail%%";
    SOUNDEST.cartItems = "%%GLOBAL_CartItems%%";
    (function(t,e){try{if(t.length>0&&e.length>0&&window.location.hash.length>0&&"recoverCart"===JSON.parse(decodeURIComponent(window.location.hash.substring(1))).action){var i=document.createElement("div"),n=document.getElementById("soundest-container");i.id="soundest-cart";i.innerHTML='<div id="soundest-cart-overlay" style="position:fixed;top:0px;left:0px;width:100%;height:100%;background-color:#ffffff;z-index:1100000001;opacity:0.9;"></div><img id="soundest-cart-loader" style="position:fixed;top:50%;left:50%;margin-top:-20px;margin-left:-20px;width:40px;height:40px;z-index:1100000002;border-width:0px;" alt="" src="'+t+"inshop/images/loading.gif?v="+e+'" width="40" height="40" />';n.appendChild(i)}}catch(f){}})(SOUNDEST.baseURL,SOUNDEST.version);
    (function(e,t){try{if(e.length>0&&t.length>0){var n=document.createElement("script"),c=document.getElementById("soundest-container");n.type="text/javascript";n.id="soundest-launcher";n.src=e+"inshop/bigcommerce-launcher.js?v="+t;c.parentNode.insertBefore(n,c)}}catch(f){}})(SOUNDEST.baseURL,SOUNDEST.version);
</script>

 
3. Snippets/ProductAddToCart.html

<script type="text/javascript">
    // SOUNDEST-V5-3-B
    // Do not remove these comments, they are super important!
    window.SOUNDEST = window.SOUNDEST || {};
    SOUNDEST.productID = "%%GLOBAL_ProductId%%";
</script>


4. Snippets/FastCartThickBoxContent.html

<!-- SOUNDEST-V5-4-B -->
<!-- Do not remove these comments, they are super important! -->
<!-- SOUNDEST-FASTCART-QUANTITY:%%GLOBAL_fastCartQuantity%% -->
<!-- SOUNDEST-FASTCART-PRICE:%%GLOBAL_fastCartProdTotal%% -->
<!-- SOUNDEST-FASTCART-LINK-IMAGE:%%GLOBAL_fastCartProdImg%% -->
<!-- SOUNDEST-CART-ITEMS:%%GLOBAL_fastCartNumItemsTxt%% -->


5. Snippets/CartItem.html

<!-- SOUNDEST-V5-5-B -->
<!-- Do not remove these comments, they are super important! -->
<!-- SOUNDEST-ITEM-%%GLOBAL_CartItemId%%-ID:%%GLOBAL_ItemId%% -->
<!-- SOUNDEST-ITEM-%%GLOBAL_CartItemId%%-QUANTITY:%%GLOBAL_ProductQuantity%% -->
<!-- SOUNDEST-ITEM-%%GLOBAL_CartItemId%%-VARIATION:%%GLOBAL_VariationId%% -->
<!-- SOUNDEST-ITEM-%%GLOBAL_CartItemId%%-PRICE:%%GLOBAL_ProductPrice%% -->
<!-- SOUNDEST-ITEM-%%GLOBAL_CartItemId%%-LINK-IMAGE:%%GLOBAL_ProductImage%% -->
<!-- SOUNDEST-ITEM-%%GLOBAL_CartItemId%%-ATTRIBUTES:%%GLOBAL_ProductOptions%% -->
<!-- SOUNDEST-ITEM-%%GLOBAL_CartItemId%%-EVENT:%%GLOBAL_EventDate%% -->
<!-- SOUNDEST-ITEM-%%GLOBAL_CartItemId%%-WRAPPING:%%GLOBAL_GiftWrappingName%% -->
<!-- SOUNDEST-CART-ITEMS:%%GLOBAL_CartItems%% -->

Did this answer your question?