How to hide price for sold out items?

Solved
VaniV
Excursionist
42 3 5

Hi all,

Can anyone help us in hiding the price for sold-out items?

Thanks.

0 Likes
dmwwebartisan
Shopify Partner
7424 1760 2357

@VaniV 

which theme have use in your shop?

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
0 Likes
dmwwebartisan
Shopify Partner
7424 1760 2357

@VaniV 

Hello,

To hide the price of sold out items from collection pages:

 

1. In your Shopify Admin go to online store > themes > actions > edit code

2- Go to Snippets folder > product-grid-item.liquid

3- press ctrl + f and search for product-item__price-wrapper

4- add this line of code just above it

{% if product.available %}

5- add this line just under the </p>

{% endif %}


6- click save


The final code should look like that:

code.PNG

 

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
0 Likes
VaniV
Excursionist
42 3 5

Hi @dmwwebartisan 

I am using Prestige.   
Also, i am unable to find "Product-grid"

0 Likes
VaniV
Excursionist
42 3 5

@JHKCreate  can you please look into this.

0 Likes
dmwwebartisan
Shopify Partner
7424 1760 2357

@VaniV 

You should add the following code to:

 

{% if product.available %}

/--Price Code--\

{% endif %}

 

Copy

Remove the /--Price Code--\ when trying to add this to your product-template.form file

Let me know!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
0 Likes
VaniV
Excursionist
42 3 5

Not an expert in liquid.  @dmwwebartisan  Can you please help me with the same.

0 Likes
dmwwebartisan
Shopify Partner
7424 1760 2357

@VaniV 

Please share your theme zip file i will check code and send the solution.

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
0 Likes
VaniV
Excursionist
42 3 5
dmwwebartisan
Shopify Partner
7424 1760 2357

@VaniV 

please wait some houre i will get back with solution.

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
0 Likes