Replace Text or Characters in the Quantity Breaks Grid

To replace text or characters in the quantity breaks grid, follow these steps:

From "Shopify Admin", select Online Store.

select online store

  1. Select Actions.


  2. Select Edit code.

    Edit code

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

  4. Add this code to the bottom of the file:

    Note: Replace "replacethis" with the code that you want to change. Replace "withthat" with the text you want to replace it with.

    var has_changed = false;
    $('#shappify-qty-msg').on('DOMNodeInserted', function(e) {
    has_changed = true;
    $('#shappify-qty-msg td').each(function(){
    var new_text = $(this).text().replace('replacethis', 'withthat');

    add code to bottom of file

  5. Select Save.

    select save

That's it!

Next Steps:

Blog Posts: