With some custom coding, you can limit Partial.ly on your Shopify store. Below are examples of various scripts.

Limit by Product Tags

#1. Limit Cart Page Button to Product Tag:

​ {% assign Partially = false %}
       {% for line_item in cart.items %}

       {% if line_item.product.tags contains 'PRODUCT_TAG' %}
       {% assign Partially = true %}
       {% endif %}
       {% endfor %}
​
       {% if Partially %}
​
[PARTIAL.LY SHOPIFY SCRIPT FROM INTEGRATION TOOL GOES HERE]
​
{%endif%}

#2. Limit Cart Page Button to Multiple Offers and Product Tags:

  {% assign Partially = false %}
       {% for line_item in cart.items %}

       {% if line_item.product.tags contains 'TAG1' %}
       {% assign Partially = 'OFFER1' %}

  {% elsif line_item.product.tags contains 'TAG2' %}
       {% assign Partially = 'OFFER2' %}

  {% elsif line_item.product.tags contains 'TAG3' %}
       {% assign Partially = 'OFFER3' %}

       {% endif %}
       {% endfor %}

       {% if Partially %}
       

<div id="partiallyCartButtonContainer"></div>
<script>
document.partiallyButtonConfig = {
     offer: '{{partially}}',
     returnUrl: '{{shop.url}}/cart',
     returnConfirmedUrl: '{{shop.url}}/cart/clear',

     cssButton: true,
     cssButtonText: 'Purchase with',

     cssButtonShowLogo: true,
     cssButtonLogoType: 'full',
     cssButtonLogoPlacement: 'after',



     renderSelector: '#partiallyCartButtonContainer',

    baseUrl: 'https://demo.partial.ly',

    shopifyCart: {{cart | json}}
   };
   (function() {
     var script = document.createElement('script');
     script.type = 'text/javascript';
     script.src = 'https://partial.ly/js/partially-checkout-button.js';
     script.async = true;
     document.head.appendChild(script);
   })();
</script>

{% endif %}
       

*Notice that the offer line within the Parial.ly script above has been altered to be:

offer: '{{partially}}',

Limit by Price Range

#1. Limit All Cart Purchases to a Specific Price Range:

{% if cart.total_price >= 50000 and cart.total_price <= 180000 %}    

[PARTIAL.LY SHOPIFY SCRIPT FROM INTEGRATION TOOL GOES HERE]
          
{%endif%}

The code above only allows order between $500 and $1800.

#2. Limit Multiple Offers to Multiple Price Ranges on Cart:

{% assign Partially = false %}
       {% for line_item in cart.items %}

       {% if cart.total_price >= 100 and cart.total_price <= 39999 %}    
       {% assign Partially = ‘Offer1ID' %}

  {% elsif cart.total_price >= 40000 and cart.total_price <= 99999 %}    
       {% assign Partially = 'Offer2ID' %}

  {% elsif cart.total_price >= 100000 %}
       {% assign Partially = 'Offer3ID' %}

       {% endif %}
       {% endfor %}

       {% if Partially %}
       
<div id="partiallyCartButtonContainer"></div>
<script>
document.partiallyButtonConfig = {
     offer: '{{partially}}',
     returnUrl: '{{shop.url}}/cart',
     returnConfirmedUrl: '{{shop.url}}/cart/clear',

     cssButton: true,
     cssButtonText: 'Purchase with',

     cssButtonShowLogo: true,
     cssButtonLogoType: 'full',
     cssButtonLogoPlacement: 'after',

     renderSelector: '#partiallyCartButtonContainer',

    baseUrl: 'https://demo.partial.ly',

    shopifyCart: {{cart | json}}
   };
   (function() {
     var script = document.createElement('script');
     script.type = 'text/javascript';
     script.src = 'https://partial.ly/js/partially-checkout-button.js';
     script.async = true;
     document.head.appendChild(script);
   })();
</script>

{% endif %} 

The code above limits Offer 1 to $1-$399.99, Offer 2 to $400 - $999.99, Offer 3 to $1000 and above.

*Notice that the offer line within the Parial.ly script above has been altered to be:

offer: '{{partially}}',

Don't see what you need?

Please email support@partial.ly.