I want to hide or replace price(request an offer) of products in particular collection, debut theme.

Highlighted
New Member
3 0 0

New to shopify: I want to hide or replace price with a request an offer tag or price request form, for products of a particular collection. 

Can somebody help me for the same. I have been looking at various solutions in the forum but none seems to work on the latest version(2019) of Debut theme. Don't know about coding at all, please help me step by step.

 

0 Likes
Highlighted
Shopify Expert
3473 543 819

Follow this for product page price replace/hide:

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

2. Section->product-template.liquid->find include 'product-price' and replace this div by follow:

{% for pro_tag in product.tags %}
       {% if pro_tag  contains 'hide_price' %}     
            <div class="product__price">
              {% include 'product-price', variant: current_variant %}
            </div>
        {% else %}
             <button class="btn">request an offer</button>
        {% endif %}
{% endfor %}

Note: For that you have to add hide_price tag in product in which you want to hide or replace price with other text.

You can replace request an offer with your text or remove this button to hide price.

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
3 0 0

Hi Jasoliya!

Much thanks! I appreciate your efforts. But while copy paste the same code you mentioned below, it seems nothing changes has been occured in prices(replace or remove), I tried in duplicate theme. Once again i will go through with the changes i need to made i.e. 

My website is https://avignabyvarsharittu.com/ and there is one collection named with "garden of eden", In this collection there are 18 products, i need to replace prices with request an offer button/tag only for the products mentioned in garden of eden. 

 

Also, might be there is my bad that i am not applying the code perfectly. Here is the screenshot below:

 

Capture.PNGCapture 1.PNG

 

Any help would be appreciated! Again thanks for your seamless support & efforts.

 

Regards, 

Sahil

P.S - If you need website password, do let me know!

 

0 Likes
Highlighted
Shopify Expert
3473 543 819

You have added hide_price tag in all 18 product?

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
3 0 0

I don't know, this is all i showed you via screenshot. Could you guide me.

Don't know about coding at all. 

0 Likes
Highlighted
Shopify Expert
3473 543 819

You need to add tag(hide_price ) in product in which you want to hide or show other button like below:

 

tag.png

 

Let me know if you till need help.

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
5 0 0

Hello Jasoliya,

I see this post but I don't see it as solved. I have kinde of the same issue, I hope yo can help me out:

 

I have some products that can be sold online, and others that can not, and the customer has to contact us for the price.

I would like those product to show a tag instead of the price when showing on the collection grid.

You can tell me what the condition can be for this to happen; maybe when the price listed is $0 or whatever you think is better.

My template is Debut.

 

Thank you master Jasoliya,

 

This is an example of what I want:ElNúmeroUNO.64.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Likes
Highlighted
Shopify Expert
3473 543 819

If you want to do on collection page grid then you have to do it in snippet->product-grid.liquid or snippet->product-card-grid file.

add following code where "{% include 'product-price', variant: product %}"

{% for pro_tag in product.tags %}
       {% if pro_tag  contains 'hide_price' %}     
            <div class="product__price">
              {% include 'product-price', variant: product %}
            </div>
        {% else %}
             <button class="btn">request an offer</button>
        {% endif %}
{% endfor %}

 Here tag i use is 'hide_price' so change what you have used 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
5 0 0

Thank you, it worked!

But I might not be able to alter the tags, because I need them for something else. 

Is there a way it can be done by Vendor instead of tag? (Since Vendor is a field that I dont use at all)

 

This is the code I want to change:

 

{% for pro_tag in product.tags %}
       {% if pro_tag  contains 'hide_price' %}     
            <div class="product__price">
              {% include 'product-price', variant: product %}
            </div>
        {% else %}
             <button class="btn">request an offer</button>
        {% endif %}
{% endfor %}

 

Thank you

0 Likes
Highlighted
Shopify Expert
3473 543 819

Yes you can change it:

       {% if product.vendor  contains 'vendor_name' %}     
            <div class="product__price">
              {% include 'product-price', variant: product %}
            </div>
        {% else %}
             <button class="btn">request an offer</button>
        {% endif %}
{% endfor %}

Note: vendor_name is your vendor name 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes