Bold Discounts V1 Code Uninstall Instructions

Follow

Bold Discounts has moved to a new version of the app. In order for this version to work correctly, any of Bold Discount's previously-installed code must be removed from your theme code.

Note: This uninstallation is only necessary if you've previously had our duplicate & hide code installed on your theme.

To remove Discounts' code from your site, please follow these steps:

Warning!

This step is only required if you have code installed for one of the following apps:

  • Bold Discounts (pre-October 2019)
  • Custom Pricing v2.0 (pre-September 2019)
  • Product Options (all versions)
  • Bold Bundles (all versions)

If you do not have one of these apps' code installed, please skip this step and proceed to the next.

Overview:

Updates may need to be done on all theme files that output product prices on the site. The number and name of these files will vary from theme to theme. Generally, three to five files will need to be updated. These control the price fields on the product, collection, search, related products, and home pages. It's important that each theme file that outputs a price be modified. This is to ensure all of the older code is removed.

Note: This will require you to go back and edit multiple files within your theme coding. To access your theme files on Shopify, select Online Store from your Shopify admin.

Go through the list of files, one at a time, and then reference your theme's files to see if that particular file exists in your theme. Not all of these files will exist in a given theme.

List of Theme Files to Update:

  • Templates: All themes should contain these files. If your theme is using "Sections", these files will be located within the "Sections" folder as *-template.liquid files.
    • product.liquid
    • index.liquid
    • collection.liquid
    • search.liquid
  • Snippets: Any given theme should typically have several of these files.
    • product-block.liquid
    • product-card.liquid 
    • product-form.liquid
    • product-grid-collage.liquid
    • product-grid-item-category.liquid
    • product-grid-item.liquid
    • product-list-item.liquid
    • product-listing.liquid
    • product-loop.liquid
    • product-single.liquid
    • product-thumbnail.liquid
    • product.liquid
    • related-products.liquid
    • search-result-grid.liquid
    • search-result.liquid
    • search.liquid
    • short-form.liquid
    • snippet-product-item.liquid

Bold Pricing Code vs. Original Pricing Code:

This is the code snippet that needs to be replaced, and the code to replace it:

Look for each of these... ...and replace all instances with this code

bold_price

product.price or item.price

  1. Duplicate themes, to create a backup copy.
  2. From Shopify's admin, select Online Store.

    Select Online Store

  3. Select Actions.

    Select Actions

  4. Select Edit code.

    Select Edit Code

  5. Under "Templates", select cart.liquid

    Note: If your theme contains sections, you may find this code within cart-template.liquid under "Sections" instead.

    Select cart.liquid

  6. Find each instance of this code and delete it:
    {%- include 'bold-cart-item' with item -%}

    Delete include cart item

  7. Look for a line that starts with <input containing value="{{ item.quantity }}" and delete the following code from this line:

    Note: Visit Can't find this code? for more information on the different ways this may display in your theme.

    {{ bold_qty_attr }}

    Delete Bold Qty Attr

  8. Select Save.

    Select Save

  1. From Shopify's admin, select Online Store.

    Select Online Store

  2. Select Actions.

    Select Actions

  3. Select Edit code.

    Select Edit Code

  4. Under "Templates", select product.liquid.

    Note: If your theme contains sections, you may find this code within product-template.liquid under "Sections" instead.

    Select product.liquid

  5. Delete the following code from the top of this file:
    {%- include 'bold-product' with product, hide_action: 'break', output: 'none' -%}

    Delete code at top of product.liquid

  6. Select Save.

    Select Save

  7. Under "Layout", select theme.liquid.

    Select theme.liquid

  8. Find the following line of code and delete it: 
    {%- include 'bold-product' with product, hide_action: 'header' -%}

    Delete bold-product loop

  9. Select Save.

    Select Save

  1. From Shopify's admin, select Online Store.

    Select Online Store

  2. Select Actions.

    Select Actions

  3. Select Edit code.

    Select Edit Code

  4. Under "Templates", select collection.liquid.

    Note: If your theme contains sections, you may find this code within collection-template.liquid under "Sections" instead.

    Select collection.liquid

  5. Find each instance of this code and delete it:
    {%- include 'bold-product' with product, hide_action: 'skip' -%}

    Delete bold-product loop

  6. Select Save.

    Select Save

  7. Complete these steps in index.liquid and related-products.liquid if the code exists within them. If it doesn't exist, continue with Step 5.
  1. From Shopify's admin, select Online Store.

    Select Online Store

  2. Select Actions.

    Select Actions

  3. Select Edit code.

    Select Edit Code

  4. Under "Templates", select search.liquid.

    Note: If your theme contains sections, you may find this code within search-template.liquid under "Sections" instead.

    Select search.liquid

  5. Find each instance of this code and delete it:
    {%- include 'bold-product' with item, hide_action: 'skip' -%}

    Delete bold-product loop

  6. Select Save.

    Select Save

  1. From Shopify's admin, select Online Store.

    Select Online Store

  2. Select Actions.

    Select Actions

  3. Select Edit code.

    Select Edit Code

  4. Under "Snippets", find these files:
    • bold-cart-item.liquid
    • bold-product.liquid
    • bold-variant.liquid

    Find Snippets

  5. Select the respective file name.

    Select Snippet name

  6. Select Delete file.

    Select Delete File

  7. Select Delete file again.

    Select Delete File

  8. Repeat Steps 4 - 7 until all of these snippet files are deleted.

Next Steps:

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.