Tickets - Login

Disable Bolt for BigCommerce

Disable Bolt Plugin

  1. Log in to Bigcommerce. 
  2. Navigate to Store Front > Payments > Online Payment Methods.
  3. Toggle off the Bolt radio button.
  4. Navigate to Store Front > My Themes > Advanced > Edit Theme Files
  5. Comment out the following scripts for each page.html:
    • templates > components > cart > preview.html
    • templates > components > cart > totals.html
    • templates > components > common > cart-preview.html
    • templates > components > products > add-to-cart.html
    • templates > pages > cart.html

Scripts

<!--<script
  id="bolt-connect"
  type="text/javascript"
  src="https://connect.bolt.com/connect-bigcommerce.js"
  data-publishable-key="gQ8isqpsUR6A.Wr413Y6dCpc5.14736a46de3aa31b19c2e603317d68cd340698e21469e452fda30444094c39b9"
  data-shopping-cart-id="BigCommerce">
</script>-->
<!--<script>
    var originalCheckoutButton = document.querySelector(".previewCartCheckout .button.button--primary");
    var boltButtons = document.getElementsByClassName("bolt-button-wrapper");
        for (var i = 0; i < boltButtons.length; i++) {
            boltButtons[i].style.display = 'block';
        }
        originalCheckoutButton.style.display = 'none';
</script>-->
<!--<script>
    var config = { childList: true, subtree: true };
    var totalClassName = "previewCartCheckout-price";
    var totalPrice = "";
    var callback = function(mutationsList) {
        var elms = document.getElementsByClassName(totalClassName);
        if (elms.length == 0) {
            return;
        }
        var newPrice = elms[0].innerHTML;
        if (newPrice !== totalPrice && window.BoltCheckout) {
            window.BoltCheckout.reloadBigCommerceCart();
        }
        totalPrice = newPrice;
    };
    new MutationObserver(callback).observe(document.body, config);
</script>-->

Finally, save and apply all files and Bolt is temporarily disabled. To reenable Bolt, simply uncomment everything.

Related Articles