Top

Customer Specific Pricing 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.
  2. Select Visit Shopify App Store.
  3. Enter Customer Specific Pricing in the "Search Bar".
  4. Select Customer Pricing (Wholesale & VIP Pricing).
  5. Select Get.
  6. Select Install app.
  7. Select Approve Charge.
  1. From "Shopify Admin", select Online Store.

    select online store 

  2. Select Actions.

    select actions 

  3. Select Edit HTML / CSS.

    select edit html / css 

  4. Under "Snippets", look for bold-product.liquid.

    look for bold-product.liquid 

  5. If it doesn’t exist, select Add a new snippet.

    add a new snippet 

  6. Enter bold-product.liquid in the "Create a new snippet called" field.

    enter bold-product.liquid 

  7. Select Create snippet.

    select create snippet 

  8. Copy and paste the bold-product.liquid code into the file.

    copy and paste the code  

  9. Select Save.

    select save 

  10. Under "Snippets", look for bold-variant.liquid.

    look for bold-variant.liquid 

  11. If it doesn’t exist, select Add a new snippet.

    add a new snippet 

  12. Enter bold-variant.liquid in the "Create a new snippet called" field.

    create a new snippet 

  13. Select Create snippet.

    create snippet 

  14. Copy and paste the bold-variant.liquid code into the file.

    copy and paste the code  

  15. Select Save.

    select save 

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

    select theme.liquid 

  2. Copy and paste this code directly above the </body> tag:
    <!-- Bold: CSP Step 1 (theme) -->
    <script type="text/javascript" charset="utf-8">
    var shappify_customer_tags ={{ customer.tags|json }}
    </script>
    <!-- // end bold code -->

    copy and paste the code 

  3. Select Save.

    select save 

  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.

    find this line 

  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 

  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.

    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 

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

    select related-product.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.

    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 

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

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

  3. Copy and paste this code directly below each instance: {% include 'bold-product' with item, hide_action: 'skip' %}

    copy and paste this code below 

  4. Select Save.

    select save 

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

    select product.liquid 

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

    paste this code 

  3. Find: {% for variant in product.variants %}

    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 

  4. Copy and paste this code directly below each instance: {% include 'bold-variant' with variant, hide_action: 'skip'  %}

    copy and paste this code 

  5. Find: product.variants.size

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

    find products.variants.size 

  6. Replace with: bold_variants_size

    replace with bold_variants_size 

  7. Find: {{ product | json }}

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

    find product | json 

  8. Replace with: {% include 'bold-product',  output: 'json' %}

    replace with this code 

  9. Select Save.

    select save 

  1. Check to see which of these files exist:
    • Under "Templates":
      • Product.liquid
      • Index.liquid
      • Collection.liquid
      • Search.liquid

      find these templates 

    • Under "Snippets":
      • 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

      find these snippets 

    • Each instance of product.price with bold_price
    • Each instance of product.price_min with bold_price_min
    • Each instance of product.price_max with bold_price_max
    • Each instance of product.price_varies with bold_price_varies
    • Each instance of product.compare_at_price with bold_compare_at_price
    • Each instance of product.compare_at_price_min with bold_compare_at_price_min
    • Each instance of product.compare_at_pricemax with bold_compare_at_price_max
    • Each instance of product.compare_at_price_varies with bold_compare_at_price_varies
    • Each instance of product.selected_or_first_available_variant with bold_selected_or_first_available_variant
    • Each instance of product.variants.first with bold_selected_or_first_available_variant
    • Each instance of product.variants[0] with bold_selected_or_first_available_variant
    • Each instance of item.price with bold_price
    • Each instance of item.price_min with bold_price_min
    • Each instance of item.price_max with bold_price_max
    • Each instance of item.price_varies with bold_price_varies
    • Each instance of item.compare_at_price with bold_compare_at_price
    • Each instance of item.compare_at_price_min with bold_compare_at_price_min
    • Each instance of item.compare_at_price_max with bold_compare_at_price_max
    • Each instance of item.compare_at_price_varies with bold_compare_at_price_varies
    • Each instance of item.selected_or_first_available_variant with bold_selected_or_first_available_variant
    • Each instance of item.variants.first with bold_selected_or_first_available_variant
    • Each instance of item.variants[0] with bold_selected_or_first_available_variant
    • Each instance of *.price with bold_price
    • Each instance of *.price_min with bold_price_min
    • Each instance of *.price_max with bold_price_max
    • Each instance of *.price_varies with bold_price_varies
    • Each instance of *.compare_at_price with bold_compare_at_price
    • Each instance of *.compare_at_price_min with bold_compare_at_price_min
    • Each instance of *.compare_at_price_max with bold_compare_at_price_max
    • Each instance of *.compare_at_price_varies with bold_compare_at_price_varies
    • Each instance of *.selected_or_first_available_variant with bold_selected_or_first_available_variant
    • Each instance of *.variants.first with bold_selected_or_first_available_variant
    • Each instance of *.variants[0] with bold_selected_or_first_available_variantIn each file, replace
  2. Select Save in each modified file

Set up a test in the app

Visit: Customer Pricing General Walkthrough for detailed information):

  1. Log into the app admin.
  2. Create a new pricing tier and a tag associated with the new tier.
  3. Create a new Customer Pricing group, assign a small discount for the new tier (e.g., 1%), and select a single product to apply the discount to.
  4. In the Shopify admin, create a customer account and assign the tag associated with your new pricing tier to the account.

Testing the storefront:

  1. On the storefront, navigate to the search page and search for the product that you selected in the app. If the search page shows a price field, check to see if the price is the regular price.
  2. Go to any collection page that has the selected product in and verify that the price showing is the regular product price.
  3. Go to the product page and check the variant drop-down selector to make sure that the app's variants aren't showing there.
  4. While on the product page, check to see if the product page's price is showing the product's regular price.
  5. Log into the customer account that you created earlier, navigate back to the search page and search for the product that you selected in the app. If the search page shows a price field, make sure that the price is the app's discounted price.
  6. Go to any collection page and verify that the price showing is the discounted app pricing.
  7. While on the product page, make sure that the product page's price field is showing the app's discounted price.

That's it!

Have more questions? Submit a request