Top

How do I get Quantity Breaks to work with my currency converter?

If you have a currency converter where you need to change your currency to include <span class="money"> {{amount}} </span>. You can add this script to the bottom of your product.liquid template.

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

 

 


This will allows totals on the Quantity Break grid to change with your currency converter.

Have more questions? Submit a request