Call for Price


Hi there, we have many products and we don’t want to show prices for some selected products. Instead of Price we want call for price button but without creating another product template so that in future if I have to edit product page, it doesnt get complicated. I am using dawn theme, this is my store link: https://premiertraders.store/ . What is the easiest solution for this. In total I got 9 products out of 300 for call for price and it would be much better if call for price button or text links to contact us page. Thanks

Hello @premiertraders ,

The best way to do it is metafields plus customization in the default product template.

Idea is:
Create a metafield ( checkbox ) Enable call for price.

Now in product template find the atc button code and wrap it condition

If created metafield is checked for specific product display call for button else display the default button.

I hope it gives you ideas to implement it.

Regards
Guleria

@premiertraders you can add tag to the products for which you want button and then by editing the code you can show the button for these products instead of price

As per your advice, I have added tag for these 9 products. The tag is “cfp” . Can you provide me code and location please ?

Here every partner/expert is looking for work but every store owner needs a free solution which is good. I don’t have any complaints with anyone.

But I think as a Shopify partner or shopify expert before replying to a post first we need to read previous replies and make a discussion on it.

like if you suggest tags please explain to the store owner why to use tags not metafields.
And if you suggest a metafield, a duplicate of the first reply please explain what was wrong with the previous reply.
It will help store owners to make a decision.

Hi Guleria, I hope you’re doing well. I read your reply, but I’m a little confused about what type of metafield I need to create—whether it’s a single-line text or something else. It would be much easier for me if you could provide the code and conditions, along with the location where I should paste it.

You need to use a checkbox ( True or false )
For code as others said you need to get help from a developer.

forget developer , I got simple code for this from youtube and its working best lollll