Hi There, can anyone sense check this for me please, pretty sure it works without side issues…? Or is there a better way…? Not a code expert…
-changes the “add to cart” to “pre-order” if the tag “pre-order” is added to the product listing
-changes back to “sold out” when inventory hits zero (so you can add the inventory quanity due in)
-dawn theme / main.product.liquid / replace span after line 399
{%- if product.tags contains 'pre-order' and product.selected_or_first_available_variant.available -%} pre-order {%- else -%} {%- if product.selected_or_first_available_variant.available -%} {{ 'products.product.add_to_cart' | t }} {%- else -%} {{ 'products.product.sold_out' | t }} {%- endif -%} {%- endif -%}