One-click remove code
To topClick on the installation button in the navigation
- Here you can choose what theme you want to remove our code from
- The first theme on the list is your current live theme
- Press Disable
- This will disable our app’s code to that theme
Manually remove code
To topYou can manually remove the code from your theme.liquid file.
Our app’s code looks like this.
The first two lines are the code to make our app work. If you delete our app you don’t have to delete this code but it is also good to delete this code and clean up your files.
The third line of code is our quick load code. This code will only show if you manually added it or had us add it for you.
If you remove our app you will need to delete the quickload code or it will cause issues in your theme.
Below is the first two lines of code that our app needs to run.
<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>
Below is the quickload code that must be removed.
<script src="https://obscure-escarpment-2240.herokuapp.com/js/best_custom_product_options.js?shop={{shop.permanent_domain}}"></script>