Shopify themes, liquid, logos, and UX
My goal is to hide pricing for certain products, I think the easiest way to do this would be to hide pricing for products that cost $0.00. Anything that costs more that $0.00 should show its price.
I have found ways to do this in the product page however, the price still shows in search pages. Please let me know if anyone has a solution, much appreciated!
Hi @RyanRichie
This is Richard from PageFly - Shopify Page Builder App
If you are using Dawn theme you can try to add this condition to price.liquid
Add a condition on price__regular div.
You can add whatever logic you want on it.
If you are on another theme, you can try to search with file that's handle the pricing.
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi @RyanRichie ,
First of all, you have to identify the HTML element of price. The element can be different in each theme.
Then put those elements in the following price checking code:
{% if product.price > 0 %}
<!-- Element show price -->
{% endif %}
For example:
{% if product.price > 0 %}
<span class="visually-hidden visually-hidden--inline">
{{ 'products.product.price.regular_price' | t }}
</span>
<span class="price-item price-item--regular">
{{ money_price }}
</span>
{% endif %}
Hope this helps
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025