Solved

Hide price for a single product in collection page for Symmetry theme

lexijane
New Member
5 0 0

Screenshot 2024-02-21 at 9.42.00 AM.png

I am using the Symmetry theme but need to hide price on specific products that require contacting for pricing, not sure how to do it

Accepted Solution (1)

Guleria
Shopify Partner
3084 604 861

This is an accepted solution.

1) Add checkbox toggle metafield for products name it Hide Price.
2)  Enable toggle checkbox for the product to which you need to hide the price.
3) Find the price code in theme fiels.
4) Wrap it in the condition 

{% if product.metafields.custom.hide_price == true %}
   // You custom code or text or leave it blank 
{% else %}
  <!-- Your default price display logic here --> 
{% endif %}

 

 

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
-Advance Search Filter

View solution in original post

Replies 7 (7)

PaulMartin
Shopify Partner
193 34 63

This requires you to add a metafield or a tag so that the product can be identified if it's price should be shown or not. Then add changes to the code of your theme.

I can help you with it if you want, just let me know.

Guleria
Shopify Partner
3084 604 861

This is an accepted solution.

1) Add checkbox toggle metafield for products name it Hide Price.
2)  Enable toggle checkbox for the product to which you need to hide the price.
3) Find the price code in theme fiels.
4) Wrap it in the condition 

{% if product.metafields.custom.hide_price == true %}
   // You custom code or text or leave it blank 
{% else %}
  <!-- Your default price display logic here --> 
{% endif %}

 

 

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
-Advance Search Filter
PaulMartin
Shopify Partner
193 34 63

Yeah this is the one.

lexijane
New Member
5 0 0

Thank you!! I made the metafield but I have never done that before so I am unsure how to find what to write in the code to make it do thatScreenshot 2024-02-21 at 10.18.19 AM.png

PaulMartin
Shopify Partner
193 34 63

@Guleria, you available to help her out with the Liquid? Let me know if you're not, because I can spare some time to help Lexi out.

PaulMartin
Shopify Partner
193 34 63

Hey @lexijane , it seems like @Guleria  hasn't replied just yet. I can help you with it if you're up for it, just message me, but maybe I'll respond in like 8-10hours from now because it's 12:30AM here and I just finished helping another person out with their store.

lexijane
New Member
5 0 0

Thank you so much!! Sent you a message