Re: Hide Product Price For Sold Out Items Only - Envy Theme

Solved

Hide Product Price For Sold Out Items Only - Envy Theme

eerieemporium
Tourist
8 0 4

Hi,

 

I have searched around and tried various methods that worked on other themes, but I am struggling to hide the product price for sold out products only on the Envy theme.  

 

Is anyone able to assist? 

 

Thank you! 

 

Accepted Solution (1)
niraj_patel
Shopify Partner
2378 514 506

This is an accepted solution.

Hello @eerieemporiumit is updated please preview store as well as below screenshots price hide for sold-out items

Product Page

techlyser_ecom_0-1674806105300.png


Collection Page

techlyser_ecom_1-1674806433544.png

 

 

 

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

Replies 11 (11)

niraj_patel
Shopify Partner
2378 514 506

@eerieemporium 

 

please add the condition above the {% include 'price' %} snippet in product-template.liquid/main-product.liquid/product.liquid

 

{% if product.available %}

 

{% include 'price' %}

 

{% endif %}

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
eerieemporium
Tourist
8 0 4

@niraj_patel 

Can you confirm that these are the instructions for Envy Theme? I do not see {% include 'price' %} anywhere, nor does product-template.liquid/main-product.liquid/product.liquid seem to exist for this theme. The closest I've found is Sections > template--product.liquid, but again, this specific snippet {% include 'price' %} does not exist there. I may be in the wrong place, please advise. Thank you! 

niraj_patel
Shopify Partner
2378 514 506

@eerieemporium 

 

i sent you the store access request please accept it and i will solve your issue for you 🙂

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
niraj_patel
Shopify Partner
2378 514 506

please provide me the store URL than i will send the access request

 

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
eerieemporium
Tourist
8 0 4

Hi @niraj_patel - I do not see a request on the backend of our store or in my email. This is our URL - https://eerieemporium.com/ 

niraj_patel
Shopify Partner
2378 514 506

I just requested as collaborator on your store from my account "Techlyser" please approve this one

techlyser_ecom_0-1674795430214.png

 

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
eerieemporium
Tourist
8 0 4

Granted. Thank you!

niraj_patel
Shopify Partner
2378 514 506

Thankyou @eerieemporium 

Please let me know any sold out product URL so i can test code.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
eerieemporium
Tourist
8 0 4

Here is a URL for a sold out product - https://eerieemporium.com/collections/lemax-spooky-town-used-retired-shop/products/witch-lamp-post-s...

 

We do not want these sold out products to show the price anywhere on our site including within the collection view. For example, if you go to this collection - https://eerieemporium.com/collections/lemax-spooky-town-used-retired-shop - and scroll down, you will see the price of many sold out products - we only want the price to appear for currently in stock products. 

 

Thank you!

eerieemporium
Tourist
8 0 4

@niraj_patel see screenshot below for example. Collection View Example.JPG

niraj_patel
Shopify Partner
2378 514 506

This is an accepted solution.

Hello @eerieemporiumit is updated please preview store as well as below screenshots price hide for sold-out items

Product Page

techlyser_ecom_0-1674806105300.png


Collection Page

techlyser_ecom_1-1674806433544.png

 

 

 

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com