Hello,
I am using the Concept Theme of Roar for our online shop.
Our main product is now sold out and I would like to use the text “Pre-order now” instead of the classic “Add to cart” button on this product page as well as on our home page.
I have already tried to adapt this part of the main-product.liquid file with adding and endif that checks if the template name is “bevi-bag” (the template name I am using for the sold out product) and adapting stock accordingly that the product is again available in Shopify, but it is not working. Here is the original part of the liquid file:
{%- liquid
if product.selected_or_first_available_variant.available == false or quantity_rule_soldout
echo 'products.product.sold_out' | t
elsif product.template_suffix == 'cleaning-kit'
echo "products.product.sold_out"
elsif product.template_suffix != 'pre-order'
echo 'products.product.add_to_cart' | t
else
echo 'products.product.pre_order' | t
endif
-%}
Maybe someone here can guide me into the right direction Thanks!