Hide the 1+ Variant (from Quantity Breaks) in the Upsell Window


If you would like to hide the 1+ variant from Quantity Breaks in the upsell window, please follow these steps:

  1. From Shopify's admin, select Apps.

    Select Apps

  2. Select Product Upsell.

    Select Product Upsell

  3. Select Settings, then Upsell Settings.

    Select Settings/Upsell Settings

  4. Scroll down to the "Custom Design" section.

    scroll down to custom design

  5. Enter this JavaScript into the Custom HTML/CSS text box:
    jQuery(window).bind("load", function () {
    $( "#upsell_upsell_form #var_id" ).each(function( index ) {
    $QB_var = $(this).text().trim();
    console.log($QB_var, typeof($QB_var), $QB_var.slice(0,1), $QB_var.length);
    if ($QB_var.slice(0, 1) == "1" && $QB_var.length <= 4 ) {

    copy and paste this code

  6. Select Save.

    select save

That's it!

Next Steps:

Blog Posts:

0 out of 1 found this helpful



Please sign in to leave a comment.