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.
Uninstalling permanently? Make sure to revoke Bolt's access to all of the following for both your production and sandbox environments:
- eCommerce Platforms
- Servers (SFTP & SSH)
- Analytics services
- Third-party services
- Disabling on Magento 1
- Uninstalling on Magento 1
- Disabling on Magento Commerce (M2)
- Uninstalling on Magento Commerce (M2)
- Disabling on WooCommerce
- Uninstalling on WooCommerce
- Disabling on BigCommerce
- Uninstalling on BigCommerce
- Disabling on Shopify
- Uninstalling on Shopify
- Disabling on Miva
- Uninstalling on Miva
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:
- Go to the directory app/etc/modules
- Locate Bolt_Boltpay.xml and open it.
- Locate the following code:
<config>
<modules>
<Bolt_Boltpay>
<active>true</active>
<codePool>community</codePool>
<depends>
<Mage_Sales/>
<Mage_Checkout/>
</depends>
</Bolt_Boltpay>
</modules>
</config>
-
In the code, you must change the active setting
from:
<active>true</active>
to:
<active>false</active> -
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.
- 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
- Then, clean and flush the Magento cache.
-
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.
-
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:
- Log in via SSH/CLI to your domain and navigate to the <MAGENTO_ROOT>
- Run:
bin/magento module:disable Bolt_Boltpay
- 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:
- Log in via SSH/CLI to your domain and navigate to the <MAGENTO_ROOT>
- Run:
bin/magento module:disable Bolt_Boltpay
- Run:
bin/magento setup:upgrade
- 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:
- Go to the WordPress admin dashboard plugin list.
- Find the Deactivate button next to the Bolt plugin.
- 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:
- Go to the WordPress admin dashboard plugin list.
- Find the Deactivate button next to the Bolt plugin.
- Click the Deactivate button.
- Find the Delete button next to the Bolt plugin.
- Click the Delete button.
- You will be prompted to confirm the deletion.
- Repeat this process for all Bolt Extension Plugins to ensure all Bolt elements are removed.
Disabling on BigCommerce
Warning — For BigCommerce merchants, Bolt strongly recommends that you only disable and do not uninstall the Bolt plugin. Due to the unique configuration with BigCommerce Bolt requires that the plugin remain installed so that refunds may be synced and processed. Having Bolt installed will not have any negative impact on merchants or shoppers, nor will it have any effect on storefront code or operations.
The proper procedure to disable Bolt within BigCommerce is to comment out the Bolt scripts within the HTML files.
To disable native Bolt integration
- Log in to Bigcommerce.
- Navigate to Store Front > Payments > Online Payment Methods.
- Toggle the Bolt radio button.
To disable legacy Bolt integration (Check Payments):
- Log in to the BigCommerse dashboard
- Go to Storefront > My Themes > Advanced > Edit Theme Files
- For each of the following:
- templates > components > cart > preview.html
- templates > components > common > cart-preview.html
- templates > components > products > add-to-cart.html
- templates > pages > cart.html
- 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:
- Follow the steps for disabling shown above, except instead of commenting out the code, simply remove it.
- 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>
- 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:
- 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>
- 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
- 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.
- Go to Storefront > Footer Scripts and Advanced Settings > Web Analytics → Google Analytics.
- 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>
- Undo the changes to made to the email templates. Go to BigCommerce Admin > Storefront > Email Templates.
- Expand the +Snippets folder.
- Go to these two templates:
- InvoicePendingPaymentDetails.html
- InvoicePendingPaymentNotice.html
- For each template click on edit → html:
-
Comment out the entire html template, update, and save:
-
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:
- Log on to your Shopify dashboard.
- Navigate to your Liquid files.
- 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>-->
- 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
- 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 %}
- 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:
- To completely remove Bolt, go through the above steps but instead of commenting items out just remove them.
- Remove the snippets and assets that were added:
-
-The Assets were those found in the directory of Bolt Shopify Github:
https://github.com/BoltApp/bolt_integrations/tree/master/shopify/Assets -
The snippet is named "bolt-order-confirmation-page-additional-script.liquid"
-
- 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
- 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>
- Go to Menu | Payment Settings and then click the Bolt (credit card) tab and you should arrive in the following page:
- Delete all keys located here.
- Change Enabled to No.
- Change Enable Logging to No.
Step 2: Remove Bolt User Interface Items
- Navigate to Menu | User Interface.
- Click the Items tab.
- Browse or search for the bolt item.
- Hover over the item and click the arrow button that appears on the left end of the row.
- Click the Pages tab.
- Use the eye icon in the upper right to show the pages the item is assigned to.
- Select all of the assigned pages, then click the “-“ button above the list to unassign the item from the selected pages.
- Next, click the Item tab.
- On the right side click the More... button, then click Delete Item.
Step 3: Disable the Bolt Module
- Navigate to Menu | Modules
- Near the top right, in the box labeled Search Modules..., type in Bolt and then click the turquoise button with a magnifying glass icon.
- 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:
- 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)
- Navigate to Menu | Payment Settings.
- In the upper right of the next screen, click the ... More button, and then the Add/Remove Modules option.
- Find Bolt Checkout Under the Installed Modules.
- Hit Remove and follow the steps indicated.
- Navigate to Menu | Modules
- Near the top right, in the box labeled Search Modules..., type in Bolt and then click the turquoise button with a magnifying glass icon.
- 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
- In the upper right of the next screen, click the ... More button, and then the Delete Module option.
- Click the orange Delete button in the upper right. It has a trash can icon on it.