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

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
3997 795 1134

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

 

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

View solution in original post

Replies 9 (9)

PaulMartin
Shopify Partner
624 60 147

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.

contact@paulmartinlopez.com
Feel free to email me! 😄
I'm open to conversations or work ʕ •ᴥ•ʔ

Guleria
Shopify Partner
3997 795 1134

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

 

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
PaulMartin
Shopify Partner
624 60 147

Yeah this is the one.

contact@paulmartinlopez.com
Feel free to email me! 😄
I'm open to conversations or work ʕ •ᴥ•ʔ
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
624 60 147

@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.

contact@paulmartinlopez.com
Feel free to email me! 😄
I'm open to conversations or work ʕ •ᴥ•ʔ
PaulMartin
Shopify Partner
624 60 147

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.

contact@paulmartinlopez.com
Feel free to email me! 😄
I'm open to conversations or work ʕ •ᴥ•ʔ
lexijane
New Member
5 0 0

Thank you so much!! Sent you a message

hawabaz
Visitor
1 0 0

Hiya

I am having the same issue. Where can I add this code to have more choices over showing or not showing prices in collections in Symmetry. Many thanks.

PaulMartin
Shopify Partner
624 60 147

Without a way to know the structure of the files inside Symmetry - since it is a paid theme - either you'll have to give a collab request to a coder or do it yourself.

contact@paulmartinlopez.com
Feel free to email me! 😄
I'm open to conversations or work ʕ •ᴥ•ʔ