How do I remove Best Custom Product Options code manually?

If you still have our app installed

To top

Click on the installation button in the navigation

Here you can choose what theme you want to remove our code from. Select the first theme to remove the code from the theme that is currently published and press Disable. This will remove our app’s code to that theme.

Manually Remove Code

To top

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="">
<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>

This code above doesn’t need to be deleted but it is best to clean your theme files from any apps you aren’t using any more.

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. 

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

<script src="{{shop.permanent_domain}}"></script>

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

Was this article helpful?

Pin It on Pinterest