Follow

Disabling or Removing the Bolt Plugin

There may be occasions when it is necessary to disable or uninstall the Bolt plugin on your storefront. The procedures below provide the steps required either disable or uninstall as needed.

Disabling on Magento 1

The proper procedure to disable Bolt within Magento 1 is to change the active setting (element) within the module’s XML file.

The procedure is as follows: 

  1. Go to the directory app/etc/modules
  2. Locate Bolt_Boltpay.xml and open it.
  3. Locate the following code:
<config>
 <modules>
   <Bolt_Boltpay>
     <active>true</active>
     <codePool>community</codePool>
     <depends>
       <Mage_Sales/>
       <Mage_Checkout/>
     </depends>
   </Bolt_Boltpay>
 </modules>
</config>
  1. In the code, you must change the active setting
    from: 
           <
    active>true</active>
    to:
           <active>false</active>

  2. Save Bolt_Boltpay.xml 

After that change, the Bolt module will be disabled

External Reference:

https://magento.stackexchange.com/questions/48838/how-to-enable-and-disable-custom-magento-extension

Uninstalling on Magento 1

The proper procedure to remove Bolt within Magento 1 is to delete all of the Bolt files and then clean and flush the Magento cache.

  1. Delete the following folders/files in your Magento root:
    • app/code/community/Bolt
    • app/design/adminhtml/default/default/layout/boltpay.xml
    • app/design/adminhtml/default/default/template/boltpay
    • app/design/frontend/base/default/layout/boltpay.xml
    • app/design/frontend/base/default/template/boltpay
    • app/etc/modules/Bolt_Boltpay.xml
    • js/boltpay
    • lib/Boltpay
    • skin/adminhtml/base/default/boltpay
    • skin/frontend/base/default/boltpay
    • skin/frontend/base/default/css/boltpay
  2. Then, clean and flush the Magento cache.
    1. Access your Magento Admin Panel and go to System -> Cache Management -> Flush Cache Storage. Magento keeps its cache in the var/cache/ folder located inside the Magento installation directory.

    2. Delete everything from the var/cache/ directory and then reload your website in your browser.

Disabling on Magento Commerce (M2)

You will need to have access to the root drive of your Magento installation in order to affect the Bolt plugin. 

Use these steps to disable the Bolt plugin:

  1. Log in via SSH/CLI to your domain and navigate to the <MAGENTO_ROOT>
  2. Run:
    bin/magento module:disable Bolt_Boltpay
  3. Run:
    bin/magento setup:upgrade

Uninstalling on Magento Commerce (M2)

You will need to have access to the root drive of your Magento installation in order to affect the Bolt plugin. 

Use these steps to uninstall the Bolt plugin:

  1. Log in via SSH/CLI to your domain and navigate to the <MAGENTO_ROOT>
  2. Run:
    bin/magento module:disable Bolt_Boltpay
  3. Run:
    bin/magento setup:upgrade
  4. Run:
    composer remove boltpay/bolt-magento2

Disabling on WooCommerce

Disabling bolt plugin in WooCommerce follows standard WooCommerce procedure.

Use these steps to disable the Bolt plugin:

  1. Go to the WordPress admin dashboard plugin list.
  2. Find the Deactivate button next to the Bolt plugin. 
  3. Click the Deactivate button.


Uninstalling on WooCommerce

The delete button will be available under the Bolt plugin (WooCommerce Bolt Checkout) only after the plugin has been disabled. 

Use these steps to uninstall the Bolt plugin:

  1. Go to the WordPress admin dashboard plugin list.
  2. Find the Deactivate button next to the Bolt plugin. 
  3. Click the Deactivate button.
  4. Find the Delete button next to the Bolt plugin. 
  5. Click the Delete button.
  6. You will be prompted to confirm the deletion.
  7. Repeat this process for all Bolt Extension Plugins to ensure all Bolt elements are removed.

Disabling on BigCommerce

The proper procedure to disable Bolt within BigCommerce is to comment out the Bolt scripts within the HTML files.

To disable within BigCommerce temporarily:

  1. Log in to the BigCommerse dashboard
  2. Go to Storefront > My Themes > Advanced > Edit Theme Files
  3. For each of the following:
    1. templates > components > cart > preview.html
    2. templates > components > common > cart-preview.html
    3. templates > components > products > add-to-cart.html
    4. templates > pages > cart.html
  4. Comment out the script tags that were added to the theme, as shown below:
<!--<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.

Uninstalling on BigCommerce 

The proper procedure to disable Bolt within BigCommerce is to delete the Bolt scripts within the HTML files.

To uninstall from BigCommerce:

  1. Follow the steps for disabling shown above, except instead of commenting out the code, simply remove it.
  2. Also, make sure to remove the bolt checkout button <div> in each of the four files. Prior to removal, they will appear in the  files as shown below:
    <div class="bolt-button-wrapper" style="display:none">
    <div class="bolt-checkout-button bolt-multi-step-checkout"></div>
    </div>
  3. See this page and remove the scripts added to hide any unnecessary messages on the order confirmation page. Bolt uses the Check as a gateway to complete an order. Therefore when a user completes a checkout, the checkout confirmation page displays Check information like this:ScreenShot2019-02-08at1.33.03PM.png
  4. Go to Theme Editor → templates → pages → order-confirmation.html, and remove the following script from the bottom of the page:
<script>
    setInterval(function() {
        var tags = document.getElementsByClassName("orderConfirmation-section");
        for (var i = 0; i < tags.length; i++) {
            var elm = tags[i];
            var txt = elm.innerText || elm.innerHTML;
            if (txt.includes("pay by check")) {
                elm.style.display = 'none';
            }
        }
    }, 200);
</script>
  1. Check the following places:
    • Theme Editor, templates > pages > checkout.html and templates > layout > base.html
    • Storefront > Footer Scripts
    • Advanced Settings > Web Analytics > Google Analytics and Site Verification Tags
  2. In those locations remove:
<style>
    label[for="radio-cheque"] {
        display: none !important;
    }
</style>

or

<style>
    div#uniform-checkout_provider_checkout_cheque {
        display: none;
    }
    label.ProviderNamecheckout_cheque {
        display: none;
    }
    label.ProviderNamecheckout_cheque + br {
        display: none;
    }
</style>

or anything similar. If we used Stripe instead of the Check method as the payment gateway then the CSS will look slightly different, but it should still be similar enough to be easily recognizable.

  1. Go to Storefront > Footer Scripts and Advanced Settings > Web Analytics → Google Analytics.
  2. Remove the track.js script. 
<script
  id="bolt-track"
  type="text/javascript"
  src="https://connect.bolt.com/track.js"
  data-publishable-key="{PUBLISHABLE_KEY}"
  data-shopping-cart-id="BigCommerce">
</script>
  1. Undo the changes to made to the email templates. Go to BigCommerce Admin > Storefront > Email Templates.
  2. Expand the +Snippets folder.
  3. Go to these two templates:
    • InvoicePendingPaymentDetails.html
    • InvoicePendingPaymentNotice.html
  4. For each template click on edit → html:
    ScreenShot2019-02-08at3.19.48PM.png

     

     

  5. Comment out the entire html template, update, and save: ScreenShot2019-02-08at3.20.06PM.png

  6. If you are using Stripe gateway, Do the same as above for OrderNoPaymentTaken.html 

Disabling on Shopify

The proper procedure to disable Bolt within Shopify is to comment out the Bolt scripts.

To disable in Shopify:

  1. Log on to your Shopify dashboard.
  2. Navigate to your Liquid files.
  3. Comment out the script tags we added to theme.liquid, as shown below:
  <!--<script
    id="bolt-connect"
    type="text/javascript"
    src="https://connect.bolt.com/connect-shopify.js"
    data-publishable-key="{PUBLISHABLE_KEY}"
    data-shopping-cart-id="Shopify">
  </script>
  <script
    id="bolt-track"
    type="text/javascript"
    src="https://connect.bolt.com/track.js"
    data-publishable-key="{PUBLISHABLE_KEY}"
    async>
  </script>-->
  1. Go through the liquid files:
    • cart.liquid
    • cart-template.liquid
    • inline-cart.liquid
    • cart-flyout.liquid
    • ajax-cart-template.liquid
    • theme.liquid
    • main.js.liquid
  2.  comment out the bolt-checkout div element as well as the following code:
{% comment %}
{% assign using_bold = false %}
{% assign using_recharge = false %}

{{ 'bolt-currency-symbols-0.1.min.js' | asset_url | script_tag }}
{% assign has_gift_card = false %}
{% assign cart_has_subscription_item = false %}
{% for i in cart.items %}
      {% if i.gift_card %}
          {% assign has_gift_card = true %}
      {% endif %}   
      {% for p in i.properties %}
          {% if p.first == 'shipping_interval_frequency' %}
              {% assign cart_has_subscription_item = true %}
          {% endif %}
      {% endfor %}
{% endfor %}  
{% if has_gift_card %}
	{% assign bolt-checkout-placeholder-style = 'style="display:none;"' %}
	{% assign shopify-checkout-placeholder-style = '' %}	
{% elsif using_bold and is_mixed_cart %}
	{% assign bolt-checkout-placeholder-style = 'style="display:none;"' %}
	{% assign shopify-checkout-placeholder-style = '' %}
{% elsif using_recharge and cart_has_subscription_item %}
	{% assign bolt-checkout-placeholder-style = 'style="display:none;"' %}
	{% assign shopify-checkout-placeholder-style = '' %}
{% else %}
	{% assign bolt-checkout-placeholder-style = '' %}
	{% assign shopify-checkout-placeholder-style = 'style="display:none;"' %}
{% endif %}
{% endcomment %}
  1. Finally, save all the changes you've made and Bolt should be temporarily disabled. To reenable Bolt, simply uncomment the things you commented out above.

Uninstalling on Shopify

The proper procedure to uninstall Bolt within Shopify is to delete the Bolt scripts.

To uninstall in Shopify:

  1. To completely remove Bolt, go through the above steps but instead of commenting items out just remove them.
  2. Remove the snippets and assets that were added:
  3. Delete the Bolt Checkout app on the Installed Apps page

Disabling on Miva

The proper procedure to disable Bolt within Miva requires several steps.

Danger —  We cannot fully remove Bolt in the MIVA environment. Bolt dependencies inject themselves in their MIVA Orders and the only way to remove the dependency is to delete or archive the orders. Disabling Bolt will remove Bolt's injection on future orders.

All Steps will be done in the MIVA Store Admin Page.

To uninstall in Shopify:

Step 1: Disable Module Settings

  1. Find All Locations of Bolt (most likely only the BASK page) and remove all occurrences of Bolt. Bolt can manifest itself in some of the following forms
    • <mvt:item name="bolt" param="connect" />
    • <mvt:item name="bolt" param="button" />
    • <mvt:item name="bolt" param="callback" />
    • <div class="bolt-checkout-button" style=""></div>
  2. Go to Menu | Payment Settings and then click the Bolt (credit card) tab and you should arrive in the following page:
    11.png
  3. Delete all keys located here.
  4. Change Enabled to No.
  5. Change Enable Logging to No.

Step 2: Remove Bolt User Interface Items

  1. Navigate to Menu | User Interface.
  2. Click the Items tab.
  3. Browse or search for the bolt item.
  4. Hover over the item and click the arrow button that appears on the left end of the row.
  5. Click the Pages tab.
  6. Use the eye icon in the upper right to show the pages the item is assigned to.
  7. Select all of the assigned pages, then click the “-“ button above the list to unassign the item from the selected pages.
  8. Next, click the Item tab.
  9. On the right side click the More... button, then click Delete Item.

Step 3: Disable the Bolt Module

  1. Navigate to Menu | Modules
  2. Near the top right, in the box labeled Search Modules..., type in Bolt and then click the turquoise button with a magnifying glass icon.
  3. Hover over the Bolt (credit card) module in the batch list, and on the far left you’ll see a button appear. It has a square with an arrow. Click this button. You will reach this page:Screen_Shot_2020-03-04_at_10.39.05_AM.png
  4. At the bottom uncheck the Active Button and hit the Update button in the top left.

Uninstalling on Miva

(ONLY IF all Bolt Orders are Deleted or Archived)

  1. Navigate to Menu | Payment Settings.
  2. In the upper right of the next screen, click the ... More button, and then the Add/Remove Modules option.
  3. Find Bolt Checkout Under the Installed Modules.
  4. Hit Remove and follow the steps indicated.
  5. Navigate to Menu | Modules
  6. Near the top right, in the box labeled Search Modules..., type in Bolt and then click the turquoise button with a magnifying glass icon.
  7. Hover over the Bolt (credit card) module in the batch list, and on the far left you’ll see a button appear. It has a square with an arrow. Click this button. You will reach this pageScreen_Shot_2020-03-04_at_10.39.05_AM.png
  8. In the upper right of the next screen, click the ... More button, and then the Delete Module option.
  9. Click the orange Delete button in the upper right. It has a trash can icon on it.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments