In Quantity Breaks, you can display more text, such as ea, after each price in the grid. Please follow the steps below to see how to set this up.
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. Custom Pricing's Select plans can be used to create quantity breaks. For more information on pricing, 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.
Setup
- From Shopify's admin, select Online Store.
- Select Actions.
- Select Edit code.
- 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".
- Add this code to the bottom of the file:
Note: If you wanted to add something instead of "ea", replace "ea" with the text that you want to use.
<script> window.done = false; $(document).ready(function(){$('#shappify-qty-msg').on('DOMNodeInserted', function(e) { if (window.done == false ) { window.done = true; $( ".shappify_qb_grid tr td:nth-of-type(2)" ).each(function() { $(this).html($(this).html() + " ea"); }); } }); }); </script>
- Select Save.