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. ★
→ Hire me for your Shopify project @ stephens.world
User | RANK |
---|---|
214 | |
169 | |
65 | |
55 | |
53 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023