Hello everyone!
I’m new to Shopify, but have some experience with customizing online shops. I’m trying to get the “Out of Stock” badge to remain on products that have zero or less stock on hand even when I enable the “Continue selling when out of stock” option. I believe this is possible, but can I get a hand with what code needs to be changed? Any help would be much appreciated. Thanks!
Thanks for the explanation - I’m playing with the default “Horizon” theme for now. I’m not sure about the snippet - but I believe the block that is driving this is _product-card-gallery.liquid
I believe the portion of code that controls this is:
product-badges__badge product-badges__badge–rectangle
{% if product.available == false %} color-{{ settings.badge_sold_out_color_scheme }}{% elsif product.compare_at_price > product.price %} color-{{ settings.badge_sale_color_scheme }}{% endif %}
"
>
{%- if product.available == false -%}
{{ 'content.product_badge_sold_out' | t }}
{%- elsif product.compare_at_price > product.price -%}
{{ 'content.product_badge_sale' | t }}
{%- endif -%}
What can I change here to get the system to look at the available qty rather than checking if it’s available or not?
Since it doesn’t matter if your stock is zero why not remove the check for availability, that way the out of stock badge always show as you want and ochange the ekseif condition to if just for sale badge
Thanks - but I need the badge to indicate when extra processing time is needed to fill an order.
Then you should probably to looking to change text for it, is it??