If you would like to hide the 1+ variant from Quantity Breaks in the upsell window, please follow these steps:
- From Shopify's admin, select Apps.
- Select Product Upsell.
- Select Settings, then Upsell Settings.
- Scroll down to the "Custom Design" section.
- Enter this JavaScript into the Custom HTML/CSS text box:
<script> 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 ) { $(this).remove(); } }); }); </script>
- Select Save.
That's it!
Comments
Please sign in to leave a comment.