Wholesale Gorilla
Simple. Powerful.

Uninstall

Instructions

 

Uninstall Wholesale Gorilla

Sorry to see you go!  Wholesale Gorilla will no longer function in your store, however we highly recommend you follow the steps below to complete the uninstall process to ensure your shop is restored to full working condition.

Need help? Email support@wholesalegorilla.net for assistance with the uninstall process.

Uninstall Instructions

Option 1 (Easy Uninstall)

If you or another app has not made any changes to your theme's code, follow these steps:

1. In your Shopify admin click Online Store

2. Find the backup theme we created that ends in WSGBackup. (Not all stores will have this theme backup. If you don’t see it continue to Option 2)

3. Click Actions > Publish to publish the backup theme.

Option 2 (Intermediate Uninstall)

If you or another app has made changes to your theme's code, or you do not want to publish the backup, follow these steps:

1. In your Shopify admin click Online Store

2. In the section marked Current Theme you will see your store's currently active theme.  Click this theme's Actions button and select Edit code. 

3. Open the snippets folder and delete the following files:

wsg-header.liquid

wsg-cart.liquid

wsg-ship-partial.liquid

4. Find the file containing all the code for your Collection Template.  For sectioned themes this is likely in Sections > collection-template.liquid.  For non-sectioned themes it is probably in Templates > collection.liquid.  File names could differ slightly, and it may also be located in the Snippets directory.

5. Find the for loop that cycles through the products in a collection. Right after this loop starts will be this code:

{% assign exclude = false %} {% if customer.tags != blank %}{% for tag in product.tags%}{% if shop.metafields.wsg_data.excludeTags contains tag%}{% assign exclude = true %} {% endif %}{% endfor %} {% else %} {% if product.tags contains 'wholesale-only' %}{% assign exclude = true %} {% endif %} {% endif %}

6. Delete this code and Save. 

7. Repeat steps 5 and 6 for any places your theme cycles through products. This will vary greatly depending on the theme, but some places to check:

search.liquid

any related-products or recommend-products loops

any featured-products or recommended products loops that might appear on your homepage.

any other collection templates

8. Done!

Option 3 (Advanced)

Following either of the above steps will completely disable Wholesale Gorilla on your store. For a full install that removes all code from your theme follow these steps:

1. In your Shopify admin click Online Store

2. In the section marked Current Theme you will see your store's currently active theme.  Click this theme's Actions button and select Edit code. 

3. Open the Layouts folder and open the file theme.liquid

4. Find the code {% include 'wsg-header' %} and delete it.

5.  If you use a Modal Cart or Cart Drawer in your theme, find all instances of the following code and Delete it:

{% if customer.tags != blank %}

{% assign showDrawer = false %}

{% endif %}

6.  Save.

7.  Find the file containing all the code for your Collection Template. 

8.  Find the following code and Delete it:

{% assign exclude = false %}

{% if customer.tags %}

{% for tag in product.tags%}

{% if shop.metafields.wsg_data.excludeTags contains tag%}

{% assign exclude = true %}

{% endif %}

{% endfor %}

{% else %}

{% if product.tags contains 'wholesale-only' %}

{% assign exclude = true %}

{% endif %}

{% endif %}

Save.

9.  You're done!  The rest of the code Wholesale Gorilla added to your site is now inactive.  If for some reason you need to remove all inactive code as well, you can continue on with the following steps.

10.  Open the file containing the main Cart Page code - usually Templates > cart.liquid.  Find the following code and delete it:

{% if customer.tags %} <div id='wsg-spof-link' style='text-align: center; font-size: 1.4em;'></div> {% endif %}

Find the following and delete it:

<div class="wsg-collections-list-{{item.id}}" style="display:none"> {{item.product.collections | json}} </div> <div class="wsg-product-tags-{{item.id}}" style="display:none"> {{item.product.tags | json}} </div>

Find all instances of the following code and delete:

class="wsg-item-price_{{item.id}}"

Find all instances of the following code and delete:

class="wsg-line-price_{{item.id}}"

Find the following code and delete (note: some themes will not have this code):

<span class='wsg-line-price_{{item.id}}' style='visibility: hidden;'></span>

Find the following and delete:

{%include 'wsg-ship-partial'%}

Find the following class name and delete:

wsg-cart-subtotal

Find the following and delete:

<p id='wsg-under-ordered' style='display:none'></p>

Find the following class name and delete:

wsg-checkout-main

Find the following class name and delete:

wsg-note

Find the following and delete:

{%include 'wsg-cart'%}

Find the following class name and delete (note: not all themes will have this code):

<div class='hideWsg'></div>

Save.

11. Open the Customer Account Page.  Usually Templates > customers/account.liquid.  Find the following and delete it:

{% if customer.tags %} <div id='wsg-spof-link' style='text-align: center; font-size: 1.4em; margin-top:30px; margin-bottom:20px;'> </div> <div id='wsg-message' style='text-align: center; margin-bottom: 20px;'> <p id='wsg-account-message'></p> </div> <script> wsgRunProxy = true; </script> {% endif %}

Save.

2.  Open the page where the majority of the Product page is rendered.  Usually Sections > product-template.liquid.  Find the following and delete it:

<script> wsgRunProduct = true; </script>

Find all instances of the following and delete:

class='wsg-price-{{product.id}}'

Find the class name and delete it:

wsg-variant-selector

Find the class name and delete:

wsg-qty

Find the following and delete:

<div id='wsgStockData'> {% capture wsgStockData %}{% for variant in product.variants %}"{{variant.id}}":{"stock":{{variant.inventory_quantity}},"policy":"{{variant.inventory_policy}}", "shipDate":"{{ variant.next_incoming_date | date: "%m/%d" }}" },{% endfor %}{% endcapture %} </div> <script> var wsgStockData = {{wsgStockData | json}}; </script> <div><p id='wsg-backordered-msg'></p></div>

Find the following and delete (not all themes have this code):

class='hideWsg'

Save.

13.  Find all files containing the code that renders a single item on the collection page.  Some themes will have more than one.  They will be in an include liquid statement in a for loop on the collection page and is usually in Snippets > product-grid-item.liquid

Find the following and delete:

<script> wsgRunCollection = true; </script>

Find the following and delete:

wsg-grid-item-{{product.id}}

Find the following and delete:

<span class='wsg-collection-item' id='wsg-prod-id-{{product.id}}' ><span class='wsg-prod-data' style='display:none'>{{product | json}}</span></span> <span class='wsg-collections-data' style='display:none'>{{product.collections | json}}</span>

Find all instances of the following class name and delete.

class="wsg-price-{{product.id}}"

Save.

All code added by Wholesale Gorilla has been deleted.

14.  Delete the following files in the Snippets directory by clicking on them and then clicking delete on the upper right.

wsg-cart.liquid

wsg-header.liquid

wsg-ship-partial.liquid

You're all done.