To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more

Hide Product Price For Sold Out Items Only - Envy Theme

Solved
eerieemporium
Tourist
6 0 0

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)

Accepted Solutions
techlyser_ecom
Shopify Partner
358 85 81

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 Expert || Helping eCommerce Brands
- 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_ecom
Shopify Partner
358 85 81

@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 Expert || Helping eCommerce Brands
- 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
6 0 0

@techlyser_ecom 

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_ecom
Shopify Partner
358 85 81

@eerieemporium 

 

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

Techlyser || Shopify Expert || Helping eCommerce Brands
- 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_ecom
Shopify Partner
358 85 81

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

 

Techlyser || Shopify Expert || Helping eCommerce Brands
- 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
6 0 0

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

techlyser_ecom
Shopify Partner
358 85 81

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

techlyser_ecom_0-1674795430214.png

 

Techlyser || Shopify Expert || Helping eCommerce Brands
- 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
6 0 0

Granted. Thank you!

techlyser_ecom
Shopify Partner
358 85 81

Thankyou @eerieemporium 

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

Techlyser || Shopify Expert || Helping eCommerce Brands
- 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
6 0 0

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
6 0 0

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

techlyser_ecom
Shopify Partner
358 85 81

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 Expert || Helping eCommerce Brands
- 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