Top

I Have a 1+ Dropdown on Products

This may occur on your quantity break products due to the way your themes code is laid out. To fix:

In your product.liquid (some themes this will have this in the short-form or product-form file) template, look for a line of code that looks like this:

{% if bold_variants_size == 1 and product.variants.first.title contains 'Default' %}
 

Change this to include:

{% if bold_variants_size == 1 and product.variants.first.title contains 'Default' or product.variants.first.title contains '1+' %}

 

Do not add "{% if shappify_qb_options_count == 1 and product.variants.first.title contains 'Default'".  If the theme doesn't already have this, then another method will need to be used to fix this.

 

If the theme doesn't have the above code

If the theme doesn't have the above code you can try adding this script below, just after the the "</form>" tag in the product.liquid (file) or product.template (sections).

{% comment %} added by bold for hide single option selector {% endcomment %}
{% if bold_variants_size == 1 and product.variants.first.title contains 'Default' or product.variants.first.title contains '1+' %}
<script>
$(window).load(function(){
$('.selector-wrapper').hide();
});
</script>
{% endif %}
{% comment %} end of bold added code to hide single option selectore {% endcomment %}
 

Why does this happen?

On products with the standard "Default Title" variant name, Quantity Breaks replaces this with the 1+ value.  Some themes won't hide the variant selector if the variant isn't named "Default Title", and this code adds the exception to hide the variant selector if the title is "1+" instead.

 

Have more questions? Submit a request