Top

Sales Motivator Install Instructions

Warning!

This article requires technical knowledge and prior experience with liquid code. If you are not comfortable with this, Email our Support Wizards for help.

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

Select each step below to view the instructions.

  1. From "Shopify Admin", select Apps.

    Select Apps 

  2. Select Visit Shopify App Store.

    select visit shopify app store 

  3. Enter Motivator in the "Search Bar".

    enter customer specific pricing in the search bar 

  4. Select The Motivator app.

    Select the motivator app 

     
  5. Select Get.

    select get 

  6. Select Install app.

    select install app 

  7. Select Approve charge.

    select approve charge 

  1. Duplicate themes, to create a backup copy.
  2. From "Shopify Admin", select Online Store.

    select online store 

  3. Select Actions.

    Select Actions 

  4. Select Edit code.

    Select Edit code 

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

    look for bold-product.liquid 

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

      add a 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:

      copy and paste the code  

    5. Select Save.

      select save 

    6. Repeat steps 6a – d for each missing snippet file.
  1. From "Shopify Admin", select Online Store.

    Online Store 

  2. Select Actions.

    Select Actions 

  3. Select Edit code.

    Select Edit code 

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

    select theme.liquid 

  5. 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 

  6. Select Save.

    select save 

  1. From "Shopify Admin", select Online Store.

    Online Store 

  2. Select Actions.

    Select Actions 

  3. Select Edit code.

    Select Edit code 

  4. 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 

  5. 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 line 

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

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

    copy and paste this code below 

  7. Select Save.

    select save 

  1. From "Shopify Admin", select Online Store.

    Online Store 

  2. Select Actions.

    Select Actions 

  3. Select Edit code.

    Select Edit code 

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

    select index.liquid 

  5. 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 

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

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

    copy and paste this code above 

  7. Select Save.

    select save 

  1. From "Shopify Admin", select Online Store.

    Online Store 

  2. Select Actions.

    Select Actions 

  3. Select Edit code.

    Select Edit code 

  4. 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-product.liquid 

  5. 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 

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

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

    copy and paste this code below 

  7. Select Save.

    select save 

  1. From "Shopify Admin", select Online Store.

    Online Store 

  2. Select Actions.

    Select Actions 

  3. Select Edit code.

    Select Edit code 

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

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

    select search.liquid 

  5. 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 this code

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

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

    copy and paste this code below 

  7. Select Save.

    select save 

  1. From "Shopify Admin", select Online Store.

    Online Store 

  2. Select Actions.

    Select Actions 

  3. Select Edit code.

    Select Edit code 

  4. 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 

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

    paste this code 

  6. Select Save.

    select save 

Note: If any of this code already exists, you can skip the step.

  1. From "Shopify Admin", select Online Store.

    Online Store 

  2. Select Actions.

    Select Actions 

  3. Select Edit code.

    Select Edit code 

  4. 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

  5. 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 

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

    Find the code 

  7. 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 

  8. Select Save.

    select save 

That's it!