Hi,
I am looking to remove the price of certain products from all collection pages.
Can I please have some help in doing so?
My store URL: https://make-your-house-a-home-template.myshopify.com/
@BejaySmith - can you add an unique tag to these products? like “hide_price”?
i0f you can add unique tag to these products then using coding we can hide the price and whichever product which has this tag will not show product.
@suyash1 Hi, Yes I can add unique tags, I have currently added: no-price to all products that require it.
@BejaySmith - are you familiar with coding?
now you need to edit liquid file and check if the tag is present in the product(you need to edit product template for this)
if tag is present then do not show price else show price
@suyash1 I am ok at coding. Would you be able to write the basic ‘if’ code for me to implement into my template.
{% assign flag=false %}
{% for tag in product.tags %}
{% if tag=="no-price" %}
{% assign flag=true %}
{% break %}
{% endif %}
{% endfor %}
{% if flag!=true %}
//price code here... mostly you will have line to render price file
{% endif %}
@BejaySmith I wondered if you found the solution for your store yet. I used the app to hide specific products in my store. and it is so simple