Bold Motivator Premium Code Install Instructions

Follow

Warning!

This article requires technical knowledge and prior experience with Liquid code. If you are not comfortable with this, Request a Bold Motivator Installation for help.

Overview

Before you begin, review Notes Before Installing Apps. This article can help get you prepared and answers many common questions.

Note: This coding installation is only required if you're offering free gift items with Motivator Premium.

Select each step below to view the instructions.

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

    Select Online Store

  3. Select Actions.

    Actions

  4. Select Edit code.

    Edit code

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

    Find Three Snippets

  6. For any that don't exist:
    1. Select Add a new snippet.

      Select Add New Snippet

    2. Enter the correct Snippet name.

      Enter Snippet Name

    3. Select Create snippet.

      Select Create Snippet

    4. Copy and paste the code found in each of these links into their respective files:

      Paste Snippet Code

    5. Select Save.

      Select Save

    6. Repeat steps 6a – d for each missing snippet file.

Note: Within the theme files, complete the following steps.

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

    Select theme.liquid

  2. Copy and paste this code directly above the </head> tag:
    {% if product.metafields.inventory.ShappifyHidden == "true" %} <meta name="robots" content="noindex"> {% endif %}

    copy and paste this code

  3. Select Save.

    Select Save

Note: Within the theme files, complete the following steps.

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

    Note: If your template contains sections, you will need to select the collection-template.liquid section instead.

    Select collection.liquid

  2. Find:

    {% for product in collection.products %}

    Note: This line may appear more than once in the file, you will need to add the line of code for each instance. Can't find this code?

    Find for product loop

  3. Copy and paste this code directly below each instance:

    {% include 'bold-product' with product, hide_action: 'skip' %}

    Include product loop

  4. Select Save.

    Select Save

Note: Within the theme files, complete the following steps.

  1. Under "Templates", select index.liquid.

    Select index.liquid

  2. Find:

    {% for product in collection.products %}

    Note: This line may appear more than once in the file, you will need to add the line of code for each instance. Can't find this code?

    find this code

  3. Copy and paste this code directly below each instance:

    {% include 'bold-product' with product, hide_action: 'skip' %}

    copy and paste this code above

  4. Select Save.

    Select Save

Note: Within the theme files, complete the following steps.

  1. Under "Snippets", select related-product.liquid.

    Note: If the theme does not have the file related-product.liquid, proceed to the next step.

    Select related-products.liquid

  2. Find:

    {% for product in collection.products %}

    Note: This line may appear more than once in the file, you will need to add the line of code for each instance. Can't find this code?

    find this code

  3. Copy and paste this code directly below each instance:

    {% include 'bold-product' with product, hide_action: 'skip' %}

    copy and paste this code below

  4. Select Save.

    Select Save

Note: Within the theme files, complete the following steps.

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

    Note: You may find this code in a similarly titled file instead.

    Select search.liquid

  2. Find:

    {% for item in search.results %}

    Note: This line may appear more than once in the file, you will need to add the line of code for each instance.

    Find for item loop

  3. Copy and paste this code directly below each instance:

    {% include 'bold-product' with item, hide_action: 'skip' %}

    Pasted for item loop code

  4. Select Save.

    Select Save

Note: Within the theme files, complete the following steps.

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

    Note: If your template contains sections, you will need to select the product-template.liquid section instead.

    Select product.liquid

  2. Paste this code at the top of the file:
    {% include 'bold-product' with product, hide_action: 'break' %}{% if bold_hidden_product %}{% break %}{% endif %}

    Include code at product.liquid

  3. Select Save.

    Select Save

Note: Within the theme files, complete the following steps.

  1. Under "Templates", select cart.liquid.

    Note: If your theme contains sections, you may have to look for this code under "Sections" in cart-template.liquid instead.

    Select cart.liquid

  2. Find:

    {% for item in cart.items %}

    and add this code directly after:

    {% include 'bold-cart-item' with item %}

    Note: This may appear more than once in the file, repeat this step for each instance.

    add code

  3. Find a line that starts with <input,ends with /> and contains value="{{ item.quantity }}". Can't find this code?

    Find the code

  4. Copy and paste:

    {{ bold_qty_attr }}

    right before the />.

    It will look similar to this:

    <input value="{{ item.quantity }}" {{ bold_qty_attr }} />

    paste this code

  5. Select Save.

    select save

 

Next Steps:

Once you've got app installed, you can create your first goal. If you'd like, adjust the banner's display settings.

Helpful Links:

7 out of 12 found this helpful

Comments

0 comments

Please sign in to leave a comment.