If items are no longer in stock, display a different text?

Hello,
I would like to resell a product even if we no longer have it in stock. Then we give a delivery time.

If the option “Continue selling when out of stock” is activated, the item is displayed, even if the quantity
is 0. Can I bypass this and display a different text if the quantity is 0 … like “Not in stock, but will be
ordered for you”? Is it possible to query the status of “Continue selling when out of stock”
via Liquid and then to compare the quantity and status?

Thanks
Marco

These settings indicate that the item is in stock … I want to change that.

Hi,

you could use variant.inventory_policy in combination with variant.inventory_quantity

variant.inventory_policy
Returns the string continue if the “Allow users to purchase this item, even if it is no longer in stock.” checkbox is checked in the variant options in the Admin. Returns deny if it is unchecked.