What's your biggest current challenge? Have your say in Community Polls along the right column.

How to show price on some items but not all items

How to show price on some items but not all items

RyanRichie
Excursionist
19 0 6

Im trying to Sell just a few item on my store online as I'm a distributor so all of my products cant be sold online. Also want to hide all the prices so they dont say 0.00 Screenshot 2024-05-07 144425.png

Thank You, Ryan Richard
Replies 3 (3)

jamalsoueidan
Shopify Partner
66 3 9

Are you using liquid or or hydrogen?

PageFly-Richard
Shopify Partner
4808 1088 1758

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. 

PageFlyRichard_0-1715132272513.png

 

 

 

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.

BSSCommerce-HDL
Shopify Partner
2305 834 910

Hi @RyanRichie ,

 

Please follow these steps:

1. You must find the block of code which renders the price in the theme.

2. If it is Dawn theme, its in price.liquid file (or grid-item-price.liquid, ...):

view (19).png

 

3. Add a condition to it, if the price is 0 then show nothing.

 

view (20).png

 

Hope this will help you!

 

Best regards,

 

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