Hide Price of Sold Out product

Hide Price of Sold Out product

taylorle
Visitor
1 0 1

Hi,

 

I'm using the Broadcast theme and would like to hide the price of Sold Out products. Any help appreciated.

 

Thanks

Replies 4 (4)

suyash1
Shopify Partner
11061 1364 1745

@taylorle Can you please share this page link? we may do it using CSS

To build shopify pages use PAGEFLY | Want authentic views on your video? Contact me - suyash.patankar@gmail.com

devcoders
Shopify Partner
1576 184 480

Hello @taylorle 

Welcome to the Shopify Community! Please share your store URL and password (if it’s password-protected), so I can check and provide you with the exact solution.

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

AnneLuo
Shopify Partner
1353 237 277

Hi, @taylorle 

Can you please share the store URL so that I can check it for you?

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

topnewyork
Astronaut
1513 186 248

Hello @taylorle ,

 

To hide the price of sold-out products in the Broadcast theme, follow these steps:

  1. Go to Online Store > Edit Code.

  2. Open the product card file (e.g.,  card-product.liquid or product-grid-item.liquid).

  3. Find the price code:

{{ product.price | money }}

Wrap it in this condition:

{% if product.available %}
  {{ product.price | money }}
{% endif %}

 

This will hide the price for sold-out products only.

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month