How can I modify the 'Add To Cart' text for zero priced products?

Topic summary

A user seeks to modify the “Add To Cart” button for zero-priced products, changing the text and redirecting to a contact page instead of the standard cart function.

Proposed Solution:

  • Create a custom product template called “inquiry” in the Theme Editor
  • Hide standard buy buttons and product form blocks
  • Add a custom liquid block with modified markup for an “Inquiry Now” button
  • Assign this template specifically to zero-priced products via the Online Store > Theme template dropdown

Implementation Steps:

  1. Navigate to Theme Editor and create new product template
  2. Customize visible blocks by hiding purchase-related elements
  3. Insert custom liquid code for the inquiry button
  4. Apply template to relevant products through admin dashboard

The solution provides a targeted approach that affects only products with zero pricing while maintaining standard functionality for regular products. The responder offers further assistance if needed.

Summarized with AI on November 18. AI used: claude-sonnet-4-5-20250929.

Hello
Please help me change the “Add To Cart” text and redirect it to the contact us page. For products with zero product prices only. Below is a sample screenshot.
My store URL: https://pureciousjewelry.com/

Thank you in advance :slightly_smiling_face:

Hello, here’s a quick and simple solution:

  1. Open the Theme Editor.

  2. Create a new template by finding the top-middle dropdown > Product > Create template.

  3. You can call the template “inquiry”.

  4. On the sidebar, hide the “Buy Buttons”, “Product form” and any blocks you don’t want to use by clicking the eye button.

  5. Click “Add block” and there should be a “Custom liquid” on the list. Add it.

  6. Paste this inside the text box and click “Save” on the top-right:


Inquiry Now
​

Now assign the new template:

  1. Go to your admin dashboard and find any products you want to add this template, then On the bottom-right there will be a dropdown under “Online Store > Theme template”.
  2. Change to inquiry and hit “Save”.

Any further questions, let me know.

1 Like