How to Hide Price Element/Note on a Specific Collection Dawn Theme

Hi, is there any way i can hide just this specific note on this collection only? I’ve added that to price.liquid but not sure how can i unhide it from one collection alone.

Hi @rm014 ,

Do you want to hide that part on that collection only or all your collections?

Hello @rm014

You can follow these steps:

  1. Go to Online Store->Theme->Edit code

  1. Open your theme.liquid file, paste the below code before

{%  if collections.handle contains 'our-specialty-boxes' %}
    
    {%  endif %}

I hope the above is useful to you.

Kind & Best regards,
GemPages Support Team

just the “| Priced per lb” on that collection only.

tried this but the “| Priced per lb” is still showing

Try to use this code

{%  if collections.handle == "our-specialty-boxes" %}
    
{%  endif %}

tried this on theme.liquid as well but unfortunately still not working

So please try this code, make sure you click Save button and reload your page after adding code

{%  if collections.handle == "our-specialty-boxes" %}
    
{%  endif %}

still not working :disappointed_face: also clear my cache and reload but still the same

I cannot see the code is applied.

{% unless collection.handle == "your collection handle" %}
 Hide content
{% endunless  %}

i’ve added it here

collections → collection

now it’s working, Thank you so much

It’s working now but when i click the products under that collection the price per lb is still there. Can you please also check how can i hide it here

{% if template.name == "collection" %}
{%  if collection.handle == "our-specialty-boxes"  %}
    
{%  endif %}
{% endif %}
{% if template.name == "product" %}
{% for coll in product.collections %}
{%  if coll.handle == "our-specialty-boxes"  %}
    
{% break %}
{%  endif %}
{% endfor %}
{% endif %}

Thanks for your help @Simonsron . Just wondering if this will be possible if i want to display the price note (price per lb) per product which will also display when you view their collection page.

You can add a div below the price and fill in your price description.

The premise is that your price descriptions are all the same, if they are not you will need to configure the product meta field to achieve this.

@Simonsron can you help me with the code for this? I think it will be easier if i will just set up a div as a note beside or under the price so i can add a disclaimer note as well.


your price note...

Place this code under your price