Hide prices on certain products throughout the store

Hi, I am looking to change the product-templete.liquid for certain products where it doesn’t show the prices throughout the whole store and product page. I also want to remove the “sold out” on product page. I have added a button that takes them to an enquire now window but cant seem to figure out how to remove prices.

2 Likes

@robertjohn17

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.

hi thanks for the reply.

https://cleansetech.com.au/

pw: caible

@robertjohn17 - are these products added in any particular collection?

we have 2 options, add them to particular collection and then we can try to hide the unwanted content on these products, or if the products are not many then create another template which will not have prices and you need to set it manually for these products

no, no collection but i can make two different collections for the products i would like to show the prices and a collection where they need to be hidden.

@robertjohn17 - to hide button add this code to the end of theme.css file

.product-form__cart-submit{display: none;visibility: hidden;}

@robertjohn17 - if products are limited then I recommend to create 2 different collections

But how can i hide prices?

1 Like

@robertjohn17 - in new collection template, you can simply comment the price code…

through css too it can be done bu that will hide prices on other products too, wo I do not recommend it.

@robertjohn17

can you try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.css ->paste below code at the bottom of the file.
.price__pricing-group {display: none;}

what code would i put in?

wont this hide the price on all products though?

@robertjohn17 - try code given by @KetanKumar on first page

this hides all products prices

hi this code hides all the prices i need to make it on certain products. can you help?

1 Like

@robertjohn17

let me know which product do you have hide price

i want to hide all prices expect for the CT AP 25, CT AP 45 these two i would like to show prices.

I recommend to use different template for these 2 products and for other
products use template which do not have price section

okay and do you have the temple that i could use for this?

1 Like

@robertjohn17 - we need to create it in your theme, if you can add me as collaborator then I can create template and let you know the details