Make a selection

Will Quantity Breaks work with my currency converter?

Laurel
Laurel
  • Updated

If you have a currency converter where you need to change your currency to include <span class="money"> {{amount}} </span>, the steps beleow will allow totals on the Quantity Breaks grid to change with your currency converter.

 Alert

The Quantity Breaks (standalone) app is no longer available for new installations. If you are currently using Quantity Breaks, you will be able to continue using the app on a grandfathered plan.

New requests for Quantity Breaks will be directed to Custom Pricing which has a Quantity Breaks plan available. For more information, please visit Custom Pricing Overview.

If you'd like move from Quantity Breaks (standalone) to Custom Pricing, please visit Switch from Quantity Breaks to Custom Pricing.

 


 

  1. From Shopify's admin, select Online Store.
  2. Select Actions.

    Actions

  3. Select Edit code.
  4. Under Templates, select product.liquid.

    Note: If your theme contains sections, you may have to make these changes in a different file, like product-template.liquid under Sections.

    select product.liquid

  5. Add this code to the bottom of the file:
    <script>
    jQuery(window).bind("load", function () {
       if($('table.shappify_qb_grid').length){
         $("table.shappify_qb_grid tbody tr td:nth-child(2)").each(function(){
            $(this).html("<span class='money'>" + $(this).html() + "</span>");
         }); 
        }
      if(typeof Currency == 'object' && typeof Currency.convertAll == 'function') {
        Currency.convertAll(shopCurrency, jQuery('[name=currencies]').val());
      }
    });
    </script>

    enter this code

  6. Select Save.