I finished customizing the theme Galleria and I already managed to get a product page template that hides the price and add to cart button to display a “call us” button instead, with a form to fill, thanks to a shopify expert.
All I needed to manage was to find a way to hide the price on collection pages as well. I thought the theme would display a customized sentence instead of the price if I put zero as price. Instead it just shows a plain 0,00€, which wouldn’t be right. I tried to add a code in the snippet product.template.liquid :
{% if product.tags contains 'Hide' %}
But it did not change a thing. If possible I want to add a “Hide” tag to some of my products : to hide the price and display a sentence like “Price on demand”. I already managed that on another Shopify theme, but the code doesn’t work on Galleria.
I know there are some apps that could help, but I don’t want to subscribe to one of those since adding a code can do the trick for free.
Here is the code of the price part I think is related to my task in product-template.liquid
- {% if current_variant.compare_at_price > current_variant.price %}
{{ current_variant.compare_at_price | money }}
{% endif %}
- {{ current_variant.price | money }}
{{settings.custom_price0_text}}
{% if descriptionSecondPart != blank%}
{{ descriptionFirstPart }}
{% endif %}
Or may be it is a collection-template issue?