Can I change my 'Add to Cart' button to an 'Inquiry' button?

Topic summary

Goal: replace the product page’s “Add to Cart” button with an “Inquiry” button that lets customers email the store owner.

Proposed approach: edit the theme code (Online Store → Themes → Edit code), find the product-template.liquid, change the button text to “Inquiry,” and add a Shopify contact form snippet ({% form ‘contact’ %} … {% endform %}) so clicks lead to sending an email. Save and preview.

Follow-up: the store owner shared a product URL for context. They located product-template.liquid but could not find the expected Add to Cart form markup there, asking if the code might live elsewhere in the theme.

Clarification needed: the store owner is unsure what “request” was sent and whether communication should occur via email or within the Shopify admin.

Status: no implementation completed yet. Key open items include identifying the correct file containing the Add to Cart form in this theme and confirming how to link the “Inquiry” action to the contact form/email. Code snippets are central to the solution; the attached image is not essential.

Summarized with AI on January 22. AI used: gpt-5.

Hello everyone,

I just have quick question.

I am trying to change the ‘Add to Cart’ button into ‘Inquiry’ button. Is there anyway I can change the button? And If it is possible, is there a way when the customers click the ‘Inquiry’ button, it directs to send e-mail to me directly?

Thank you very much !

Thank you for your reply. I have no knowledge in coding so if it is possible, can you code it for me and let know me know step by step?

Hello @yenchoi010 ,

You can try to follow these steps:

Go to Online Store → Themes → Actions → Edit code

Go to product-template.liquid file

Locate the section that renders the ‘Add to Cart’ button. It could look like this:


Replace the ‘Add to Cart’ button text with ‘Inquiry’ text:


To set up Inquiry button to direct customers to send an email to you directly when they click on it.

Add the following code snippet to the page content:

{% form 'contact' %}
  
  
  
{% endform %}

Save and preview

Hope this can help.

Transcy

https://thestroll.gallery/collections/on-the-wall/products/lime-tree-forest-%EB%9D%BC%EC%9E%84%EB%82%98%EB%AC%B4%EC%88%B2

Here you go. Thank you.

1 Like

Hello Transcy,

I found Product-template.liquid file but I am having hard time finding

Add to Cart code in the file.

Is it possible that the code is not in the file ?

Hello,

I am very new to Shopify and I have no idea what request you sent me.

Is it through email? or on Shopify website?