20 likes | 114 Views
How to create BIGCOMMERCE FREE SHIPPING COUNTER
E N D
Bigcommerce free shipping counter When you want to show a Counter on cart page that shows the free shipping amount. Use this method if you want to – 1. Copy the below code and paste the code in cart,html before </body>
<script type=”text/javascript”> var pr = Number($(‘.SubTotal’).children(‘.small’).children(‘.ProductPrice’).html().replace(/[^0- 9\.]+/g,””)); var fo = 500; /* Amount for Flat rate shipping eligibility, 15 below in line 81 and 85 is amount for flat rate */ var fg = parseInt(fo – pr); if((fg < fo) && (fg > 0) ){ $(‘.breadcrumbs’).after(‘<div class=”nsiio”> you are just $’ +fg+ ‘ away from $15 flat-rate shipping!</div>’); } else if(pr==0){ } else{ $(‘.breadcrumbs’).after(‘<div class=”nsiio”> you are qualified for $15 flat-rate shipping!</div>’); } </script> Get Best Bigcommerce Services at Makkpress