Solved

Hide Product Price For Sold Out Items Only - Envy Theme

eerieemporium
Tourist
8 0 2

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)
techlyser_web
Shopify Partner
1364 254 265

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

 

 

 

Techlyser || 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)

techlyser_web
Shopify Partner
1364 254 265

@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 %}

Techlyser || 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 2

@techlyser_web 

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! 

techlyser_web
Shopify Partner
1364 254 265

@eerieemporium 

 

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

Techlyser || 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
techlyser_web
Shopify Partner
1364 254 265

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

 

Techlyser || 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 2

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

techlyser_web
Shopify Partner
1364 254 265

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

techlyser_ecom_0-1674795430214.png

 

Techlyser || 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 2

Granted. Thank you!

techlyser_web
Shopify Partner
1364 254 265

Thankyou @eerieemporium 

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

Techlyser || 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 2

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 2

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

techlyser_web
Shopify Partner
1364 254 265

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

 

 

 

Techlyser || 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