How do I remove Best Custom Product Options code after uninstalling?

Manually Remove Code

To top

Unfortunately, Shopify doesn’t let us remove our app’s code on your theme.liquid when you uninstall our app. Our app’s two lines of code won’t cause any issues if you leave it, but it is best practice to remove any code you aren’t using anymore.

If you installed our quick load code or had us install this code for you then you will need to remove this manually. Scroll down to the bottom of this page for information on how to do this.

You can remove our app’s code manually from your theme.liquid file

  1. First, navigate to your Shopify admin.
  2. Click Online Store.
  3. Next, go to the Actions dropdown and select Edit Code.
  4. Open the theme.liquid file and delete the following code that is after the <head> tag.
<link rel="stylesheet" href="https://obscure-escarpment-2240.herokuapp.com/stylesheets/bcpo-front.css">
<script>var bcpo_product={{ product | json }}; {% if product.metafields.bcpo.bcpo_data %}var bcpo_data={{ product.metafields.bcpo.bcpo_data }};{% endif %} {% if shop.metafields.bcpo.bcpo_settings %}var bcpo_settings={{ shop.metafields.bcpo.bcpo_settings }};{% endif %}var inventory_quantity = [];{% for v in product.variants %}inventory_quantity.push({{v.inventory_quantity}});{% endfor %}if(bcpo_product) { for (var i = 0; i < bcpo_product.variants.length; i += 1) { bcpo_product.variants[i].inventory_quantity = inventory_quantity[i]; }}window.bcpo = window.bcpo || {}; bcpo.cart = {{cart | json}}; bcpo.ogFormData = FormData;</script>

Quick Load code must be deleted

To top
If you added our quick load code or had us add it for you, then you will need to remove it manually to prevent issues. 
<script src="https://obscure-escarpment-2240.herokuapp.com/js/best_custom_product_options.js?shop={{shop.permanent_domain}}"></script>

This code would show right under our first two lines of code. You might not have added this to your theme.

If you need any help removing our code, please contact us.

Was this article helpful?
Dislike

Pin It on Pinterest