Hello,
I use a prestige theme.
I have set up stock inventory display, on product page.
I want to ask what code should I use so that when the stock inventory drops to 0, the sentence is displayed: This product is on demand, delivery within 14 days.
Because now that invetory is 0, nothing is displayed there.
Thank you for your response
Hi @uprisemedia1 ,
You can consider adding a product label app to display a specific label to a product when a product is out of stock.
I found this Product Labels & Badges app that may suit your needs. It allows you to add custom-text labels to a product on the product page/collection page/search results page/homepage. You can freely design your own badge within the app. Most importantly, it allows you to select the conditions of when the labels appear depending on the Inventory status.
I hope this can help you achieve your business goals.
{%- when ‘inventory’ -%}
{%- assign hide_inventory_quantity_by_default = false -%}
{%- if product.selected_or_first_available_variant.inventory_management == blank or product.selected_or_first_available_variant.inventory_quantity <= 0 -%}
{%- assign hide_inventory_quantity_by_default = true -%}
{%- endif -%}
{%- if block.settings.inventory_quantity_threshold != 0 and product.selected_or_first_available_variant.inventory_quantity > block.settings.inventory_quantity_threshold -%}
{%- assign hide_inventory_quantity_by_default = true -%}
{%- endif -%}
{%- if block.settings.inventory_quantity_threshold == 0 -%}
{{- 'product.form.inventory_quantity_count' | t: count: product.selected_or_first_available_variant.inventory_quantity -}}
{%- else -%}
{{- 'product.form.low_inventory_quantity_count' | t: count: product.selected_or_first_available_variant.inventory_quantity -}}
{%- endif -%}