I few week ago I removed a small amount of code that removed all the prices from product cards, O cant remember the code I removed. I would like to bring them back and only remove them for certain tagged products.
Can this be done? I am using Refresh
Hi @AWeilding ,
Welcome to community, I would like to help you further with this.
Answering your question, it is possible to get back the prices and then hide them with tag conditions.
Two points
- Did you backed up the theme at that time?
- If not backed up, where did you made the changes i.e product-card.css, theme.liquid etc
Unfortunately I didn’t back up and I can’t remember where I removed to code from. Sorry I’m not much help there.
Hi @AWeilding
You can try to open card-product.liquid, click on Current, change file to the previous version, save and check again.
Brilliant, yes this has brought all prices back to my cards.
Now what I would like is to remove them but only on certain collections?
Please send me your collection URLs that you want to hide the price so I can provide the code
Please add this code to theme.liquid file, after
{% if collection.id == 618161176904 or collection.id == 618161242440 or collection.id == 618124968264 %}
{% endif %}
Best Regards,
Dan
Perfect, thanks for your help on this.