Replace "Add to cart" with "Make an Enquiry" Dawn Theme

Hello I have been trying to add a custom button on Dawn Theme, which open the contact form, from then they can send us an email.

It won’t be for all products but just for a specific collection.

How can I do this on Dawn Theme? I tried to use the shopify guide however it doesn’t work for this theme, please help.

Thanks in advance,

Ottavia

That’s never a problem

Could you tell me how?

Hello

Please follow the below steps https://prnt.sc/6VyXo0muRm8j

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

  2. Find main.product.liquid file in the search box

  3. ctrl+f and search buy-buttons

  4. paste the below code as defined in the above screenshot

<a href="add your conatct page link" class="button button--full-width button--secondary"> 
Make An Enquiry</a>
  1. comment code as per defined in the above screesnshot

Output :

I hope it will help you

Hello, thank you for your reply, I can’t seem to find main.product.liquid, it seems I don’t have that file.

What can I do?

@ottavia-jt

I think he meant the file main-product.liquid

You can replace the selected code in the following image with the code in the @SetuBridge_1 reply

Thank you for your replies, I was searching the wrong file. I’ll try now! Thanks

Hello @ottavia-jt ,

Thanks @LamQSolutions for your reply

Yes, main-product.liquid file

sorry for the mistake

Please follow the above steps

I hope it will work for you

Hey @ottavia-jt .

Thanks for reaching out.

Did the above coding change advised by @LamQSolutions and @SetuBridge_1 work for you? If so, be sure to mark their post as a solution to inform others that may view the thread.

This is a great question! In order to add a custom button to your online store it will require a manual change of coding as this change is not available using the Theme Editor. Since the Dawn theme is designed and supported by Shopify, we can use free design time for Shopify themes to allow our internal teams to make the changes on your behalf.

If you are interested in using the design time, you will need to login to your store using our Contact Us page. This will allow us to securely verify you as the store owner before speaking directly with a Support Advisor about the changes you would like to see.

Let me know if you have any questions.

This seems to apply the contact button to all product pages. The poster (and I) want the button only on a select number of product pages.

were you able to solve this problem?

Hi @Cono @ottavia-jt

I can build this feature, where I can add a contact form on the below product specific to the collection or the best would be to have metafield in the product.

Please refer my task done at https://dunlin.com.au/products/dunlin-bordeaux-wall-light-weathered-brass?variant=40549315543107

the place can be different and yes this form is visible for every product just need to add conditions to have specific products.

let me know your thoughts…

Hello @Sulaman_Hassan ,

You have to just do it. please follow the steps in the screenshot. that’s it.

  • paste the below code as defined in the above screenshot
<a href="add your conatct page link" class="button button--full-width button--secondary"> 
Make An Enquiry</a>

comment code as per defined in the above screenshot