Shopify themes, liquid, logos, and UX
Hi Everyone!
I have been back and forth trying to hide the price section when a product price is set to zero. I am using the Impact theme and have played around with different bits of code, but nothing seems to work. Any suggestions on how to do this?
Thanks a mil.
Hey Mikhailkuzi,
There are a number of threads where this has been discussed/solved, here's one:
https://community.shopify.com/c/shopify-design/hide-price-only-for-products-priced-at-0-not-just-sol...
You basically just need to wrap the pricing-coding with some 'if' tags, like the following:
{% if product.price > 0 %}
[CODING FOR PRICE GOES HERE]
{% else %}
[CODING FOR CUSTOM MESSAGE WHEN $0 GOES HERE, OTHERWISE LEAVE BLANK]
{% endif %}
If you're really having troubles getting this working yourself, then you'll probably need to hire someone to do the coding for you. I wouldn't charge much to handle this for you, if you're interested in hiring me (just email me at support@stephensworld.ca).
Otherwise, you'd want to reach out to one of the Experts/Partners from this page:
https://www.shopify.com/partners/directory/services/store-setup/customize-theme
Cheers,
Stephen
★ Did my post help? If yes, then please like and accept solution. ★
https://stephens.world
support@stephensworld.ca
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024