Hide Price in Sold Out products in Canopy Theme?

Hey all, I was wondering if I could use a little bit of code to hide the price in products that have sold out in the Canopy shopify theme?

1 Like

@llp

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

Thank you very much - url is laurenpretorius.com

1 Like

@llp

thanks for url

can you try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/styles.css ->paste below code at the bottom of the file.
.sold-out .price {display: none !important;}

This worked like a charm, thanks so much!

When I click on the product the price does show, can I add this snippet of code to the individual product pages as well?

When I click on the individual product the price still shows - do I need to add a snippet of code to elsewhere for product pages as well? Thanks!

1 Like

@llp

yes its also possible product page bt i can’t fine special code sold out item so i can be done customization code please share us

Okay, what exactly should I be looking for to provide you with? Thanks!

1 Like

@llp

It can be done by doing some code customization. please send me a personal message and we can discuss what you’d like