After you install Checkout Boost or Boost Sales successfully, our apps will create new product variants in order for customers to receive your offer. These new product variants should be hidden so your customers won’t see them. 


Therefore, in order for apps to run perfectly, you’ll need to login Shopify dashboard and do the following steps.


If you find it hard to play with code, feel free to send us a request to finish your installation. We offer FREE installation for all customers to avoid theme errors or conflicts.


Simply invite us (hi@beeketing.com) to your store admin so we can do it for you (We need permission to Themes, Products and Apps to edit your theme code).

Step 1: Back up your theme:


  • Go to Themes >> Choose the theme you want to install the code >> Duplicate your original theme so that you can revert back anytime if you wish to discontinue our app in the future.


Step 2: Add Beeketing scripts into your theme's header:


  • Click Edit HTML/CSS
  • Add {% include 'scn-base-js' %} before </head> tag on the file named theme.liquid.


Step 3: Hide BK variants and discount prices from the storefront:  


- Go to Themes >> Search for these keywords in turn: product, collection, search:



- Change:

  • from product.price to scn_product_min
  • from product.price_min to scn_product_min
  • from product.price_varies to product.price_varies and scn_price_varies
  • from product.variants.size to scn_variant_size

- And incluce this code {% include 'scn-product-price' with product %} on top of the file that you change the above codes.



Step 4: Add Beeketing-Snippets


- Snippets >> Add a new snippet >> Create a new snippet called "scn-product-price"


- Add this code:


{% assign scn_product_min = null %}
{% assign scn_product_compare = scn-product-price.compare_at_price %}
{% assign scn_product_available = scn-product-price.available %}
{% assign scn_is_contain_scn_variant = false %}
{% assign scn_variant_size = 0 %}
{% assign scn_unavailable_variants_count = 0 %}
{% assign scn_get_first_product_variant = false %}
{% assign scn_first_product_variant = scn-product-price.variants[0] %}
{% for variant in scn-product-price.variants %}
    {% unless  variant.metafields.brodev_scn.hide == "true" %}
    {% unless variant.title contains 'Free Gift' %}
    {% unless variant.title contains '% Off' %}
    {% unless variant.metafields.shappify_qb.qb_hide == "1" %}
    {% unless variant.metafields.shappify_bundle.is_bundle == "true" %}
    {% unless variant.metafields.brodev_scn.hide == "true" %}
    {% unless variant.metafields.secomapp.freegifts %}
    {% if variant.price < scn_product_min or scn_product_min == null %}
        {% assign scn_product_min = variant.price %}
    {% endif %}
    {% if variant.available == false %}
        {% assign scn_unavailable_variants_count = scn_unavailable_variants_count | plus: 1 %}
    {% endif %}
    {% if variant.compare_at_price < scn_product_compare %}
        {% assign scn_product_compare = variant.compare_at_price %}
    {% endif %}
    {% assign scn_variant_size = scn_variant_size | plus: 1 %}
    {% if scn_get_first_product_variant == false %}
        {% assign scn_first_product_variant = variant %}
        {% assign scn_get_first_product_variant = true %}
    {% endif %}
    {% assign scn_is_contain_scn_variant = true %}
    {% endunless %}
    {% endunless %}
    {% endunless %}
    {% endunless %}
    {% endunless %}
    {% endunless %}
    {% endunless %}
{% endfor %}
{% if scn_unavailable_variants_count == scn_variant_size %}
    {% assign scn_product_available = false %}
{% endif %}
{% if scn_product_min < scn-product-price.price_max %}
    {% assign scn_price_varies = true %}
{% else %}
    {% assign scn_price_varies = false %}
{% endif %}


- Save snippet


You're all DONE here!


If you’re not confident with adding code to your theme, send us a request now to finish app installation. 

 

We wish you success.

 

Beeketing