Shopify Wholesale Simplified


Thank you for purchasing our “Shopify Wholesale Simplified” App. If you have any questions that are beyond the scope of this help file, please feel free to email via our user page contact form. Thank you so much !

Shopify Wholesale Simplified app gives shopify store owner the capability to set special discount to specific wholesale customer while shopping from his store.

This app is a powerful extension which lets you to create and manage any types of discount and pricing rules for your gold or premium wholesale buyer. It is an easy way to run flexible promotions to sell more! And give new prices and offers to attract more customers.

Shopify Wholesale Simplified app will help you to increase your sales by offering allure and needful discounts from your shopify store. With a few click you can create dynamic offers for the customers from your store admin panel.

Shopify Wholesale Simplified app is an efficient, robust and intuitive app that encourage to wholesale purchase by providing discounts. This app is well implemented with all the necessary features that will make your store more importance to your customers.

Shopify Wholesale Simplified app has excellent features and easy to install or setup. Shopify Wholesale Simplified app is more flexible and compatible with many existing apps in the Shopify repository. Users can easily configure the app into the new or existing Shopify store.

This app requires few theme liquid file changes. The changes depend on theme liquid codes. If you understand liquid logic / codes then follow the steps given below and let us know if you face any problems. Otherwise add install@solvercircle.com as a staff member of your store (If you don't know how to add "staff member" then click here) and email us at install@solvercircle.com, then we will install the codes for you.

 

1. Login your Shopify Store in Admin panel.

2. Now hit our Apps URL and click on to "Get App" button.

For show this application in your theme, you should add some code in your template. So total process are given below.

3. Go to “Themes” menu of Admin Dashboard and Edit your published themes to install the application.

4. Click on “Template Editor” and put the Shopify Wholesale Simplified Application “Code” on the following files. (Update this template files: theme.liquid, product.liquid and cart.liquid)

 

Step 1: Go to theme.liquid file and add the following code before the “</body>” tag.

<!-- Start: SC Wholesale Simplified -->
{% include 'sc-ws' with 'sc-ws-script' %}
<!-- End: SC Wholesale Simplified -->

Screenshots of theme file for the Step 1 code is given below:

 

Step 2: Add the following code before the code of showing product price (with compared price) for both product.liquid and collection.liquid files.

<!-- SC: Wholesale Simplified -->
{% include 'sc-ws' with 'discount' %}
{% if sc_ws_variant_price %}
	{% include 'sc-ws' with 'show-product-discount' %}
{% else %}

And complete the code with {% endif %}

Screenshots of theme file for the Step 2 code is given below:

 

Step 3 (a): Add the following code in the beginning of cart.liquid file.

<!-- Start: SC Wholesale Simplified -->
{% assign sc_ws_total_discount = 0 %}
{% assign sc_ws_total_sale = 0 %}
<!-- End: SC Wholesale Simplified -->

Screenshots of theme file for the Step 3 (a) code is given below:

 

Step 3 (b): Add the following code before the code where showing cart item price (item.price)

<!-- SC: Wholesale Simplified -->
{% include 'sc-ws' with 'discount',product:item.product,sc_ws_variant:item.variant %}
{% if sc_ws_variant_price %}
{% include 'sc-ws' with 'show-cart-item-discount' %}
{% else %}

And complete the code with {% endif %}

Screenshots of theme file for the Step 3 (b) code is given below:

 

Step 3 (c): Add the following code before the code where showing cart item line-price (item.line_price)

<!-- SC: Wholesale Simplified -->
{% include 'sc-ws' with 'discount',product:item.product,sc_ws_variant:item.variant,sc_ws_quantity:item.quantity %}
  {% if sc_ws_variant_price %}
	 {% include 'sc-ws' with 'show-cart-item-total-discount'  %}             
{% else %}

And complete the code with {% endif %}

Screenshots of theme file for the Step 3 (c) code is given below:

 

Step 3 (d): Add following code before the code where showing cart total price (cart.total_price).

<!-- SC: Wholesale Simplified -->
{% if sc_ws_total_discount != 0 %}
  {% include 'sc-ws' with 'show-cart-total-discount' %}
{% else %}

And complete the code with {% endif %}

Screenshots of theme file for the Step 3 (d) code is given below:

 

Step 1 (a): Add the following code in the end of "extra-product-options.liquid" files

{% comment %}
SC wholesale extension
{% endcomment %}
{% if extra-product-options == 'item-line-price-for-ws' %}
 <!-- SC: Wholesale Simplified -->
  {% include 'sc-ws' with 'discount',product:item.product,sc_ws_variant:item.variant,sc_ws_quantity:item.quantity %}
    {% if sc_ws_variant_price %}
   {% assign dis_line_price = sc_ws_sale_total_price %}
   {% assign main_line_price = sc_ws_variant_total_price %}
   {% if item.properties._ScEpoID and item.properties._ScEpoQty %}
    {% assign qty = item.properties._ScEpoQty %}
    {% assign epo_index = forloop.index0|plus:1 %}
    {% assign line_price = qty | times:cart.items[epo_index].price | times: item.quantity | plus: dis_line_price %}
    {% if minicart  %}
    {% else %}
    {{line_price | money}}
    <del>{{main_line_price | money}}</del>
    {% endif %}
   {%else%}
    {% if minicart %}
    {% else %}
    {{dis_line_price | money}}
    <del>{{main_line_price | money}}</del>
    {% endif %}
   {%endif%}
     {% else %}
   {% if item.properties._ScEpoID and item.properties._ScEpoQty %}
    {% assign qty = item.properties._ScEpoQty %}
    {% assign epo_index = forloop.index0|plus:1 %}
    {% assign line_price = qty | times:cart.items[epo_index].price | times: item.quantity | plus: item.line_price %}
   {%else%}
    {% assign line_price = item.line_price %}
   {%endif%}
    {% if minicart  %}
    {% else %}
    {{line_price | money}}
    {% endif %}
  {% endif %}

{% endif %}

{% if extra-product-options == 'item-price-no-money-for-ws' %}
 <!-- SC: Wholesale Simplified -->
  {% include 'sc-ws' with 'discount',product:item.product,sc_ws_variant:item.variant %}
  {% if sc_ws_variant_price %}
   {% assign dis_item_price = sc_ws_sale_price %}
   {% assign main_item_price = sc_ws_variant_price %}
   {% if item.properties._ScEpoID and item.properties._ScEpoQty %}
    {% assign qty = item.properties._ScEpoQty %}
    {% assign epo_index = forloop.index0|plus:1 %}
    {% assign item_price = qty | times:cart.items[epo_index].price | plus: dis_item_price %}
    {{ item_price | money }}
    <del>{{main_item_price | money}}</del>
   {%else%}
    {{dis_item_price | money}}
    <del>{{main_item_price | money}}</del>
   {%endif%}
     {% else %}
   {% if item.properties._ScEpoID and item.properties._ScEpoQty %}
    {% assign qty = item.properties._ScEpoQty %}
    {% assign epo_index = forloop.index0 | plus:1 %}
    {% if item.properties._ScEpoID == cart.items[epo_index].properties._ScEpoID %}
     {% assign item_price = qty | times: cart.items[epo_index].price | plus: item.price %}
    {%endif%}
   {%else%}
    {% assign item_price = item.price %}
   {%endif%}
   {{item_price | money}}
  {% endif %}
{% endif %}

{% if extra-product-options == 'is-extra-product-item-for-ws' %}
 {% if item.id == shop.metafields.ExtraProductOptions.EPOHiddenVariant %}
  <input  class="sc-epo-cart-item {{sc_ws_total_sale}}" type="hidden" data-line="{{ forloop.index }}">
  {% assign sc_ws_total_sale = sc_ws_total_sale | plus: item.line_price %}
  {% continue %}
 {% else %}
  <input class="sc-epo-cart-item {{sc_ws_total_sale}}" type="hidden" data-line="{{ forloop.index }}">
 {% endif %}

{%endif%}

Step 1 (b): Add the following code in "extra-product-options.liquid" files

{% if extra-product-options == 'epo-product-script' %}
    {% if template contains 'product'  and product.metafields.ExtraProductOptions.epo_options != null %}
 <script type="text/javascript" src="/apps/extra-product-options/scripts/extra-product-options.min.js"></script>

        <script>
          ;(function(){
            function epocallback(){
              if(typeof epo_app_1568 != 'undefined'){
                document.getElementById("epo-options").style.display = "block";
                epo_main_product = {{ product | json }};
                sc_epo_options = {{product.metafields.ExtraProductOptions.epo_options | json}};
                sc_epo_post_type = 1;
                sc_epo_cost = 0.01;
                {% if shop.metafields.ExtraProductOptions.epo_total_price %}
                sc_epo_show_total_amount = true;
                {% endif %}
                if(typeof init_epo != 'undefined'){
                  init_epo(sc_epo_options);
                }
              }else{
                var epo_options = document.getElementById("epo-options");
                epo_options.parentNode.removeChild(epo_options);
              }
            }
            window.attachEvent ? window.attachEvent('onload', epocallback) : window.addEventListener('load', epocallback, false);
          })();
          function sc_epo_get_product_quantity(productForm){
            if(sc_epo_jquery(productForm).find('*[name="quantity"], *[name="Quantity"]').length){
              return sc_epo_jquery(productForm).find('*[name="quantity"], *[name="Quantity"]').val();
            }else{
              return 1;
            }       
          }
          function sc_epo_ajax_cart_callback(productForm,success){
            sc_epo_add_properties_to_options();
            var title = sc_epo_jquery('.product-title h2').html();
            var image = sc_epo_jquery('#product-featured-image').attr('src');
            console.log('ee',title,image);
            sc_epo_jquery('.ajax-success-modal').find('.ajax-product-title').html(sc_epo_ella.translateText(title));
            sc_epo_jquery('.ajax-success-modal').find('.ajax-product-image').attr('src', image);
            sc_epo_jquery('.ajax-success-modal').find('.btn-go-to-wishlist').hide();
            sc_epo_jquery('.ajax-success-modal').find('.btn-go-to-cart').show();

            sc_epo_ella.showModal('.ajax-success-modal');
            sc_epo_ella.updateDropdownCart();
//               window.location = "/cart";
          }
          function sc_epo_external_add_to_cart(productForm){
              // this function will be used for adding product to cart if 'sc_epo_post_type' will be -1.
          }
          function sc_epo_add_properties_to_options(){
            sc_epo_jquery('#epo-options *[id^="epo-option-"]').each(function(index,element){
              var index_with_prop = "properties[epo-option-"+sc_epo_jquery(element).attr("data-epo-index")+"]";
              sc_epo_jquery(element).attr('name',index_with_prop);
            });
          }

        </script>
    {% endif %}

{%endif%}

Please see the following screenshot for clean overview: