How do I change 'add to cart' wording to read 'pre-order' when using specific template?

Topic summary

A user needed to change the ‘Add to Cart’ button text to ‘Pre-order Now’ for products using a specific template (pre-order-2) on a Shopify store running Prestige 7.3.6 theme.

Solution provided:

  • Modify the product section file (sections/main-product.liquid)
  • Use conditional Liquid code to check if the template name matches ‘product.pre-order-2’
  • Display custom button text (‘Pre-order Now’) for that template, otherwise show default ‘Add to Cart’

Code structure:

{% if template.name == 'product.pre-order-2' %}
  [Pre-order button]
{% else %}
  [Add to Cart button]
{% endif %}

Outcome:
The solution was successfully implemented and resolved the issue. The helper also offered guidance on making the text dynamic (e.g., ‘Order for May 15th’) based on product data if needed.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

Hello, I’m working on a client’s site: maisonmargauxltd.com and have created a template for products that are available to pre-order (pre-order-2). Site is built with the Prestige 7.3.6 theme.

Client would like me to change the wording on the button from ‘add to cart’ to “Pre-order Now” / “Reserve Yours” / “Order for May 15th” or similar.

Could anyone help with the code required for this please? I’m familiar with implementing code but less so with writing it!

Thanks in advance

Hey @oysterpots ,

Code (for main-product.liquid or similar section)

Find your Add to Cart button in the product section (sections/main-product.liquid or similar), and replace it with this:

{% if template.name == 'product.pre-order-2' %}
  
{% else %}
  
{% endif %}

Would you like to use dynamic text like “Order for May 15th” based on the product?

Thanks

Rajat

1 Like

Hi Rajat,

I’ve just tried this and it’s worked perfectly!

Thank you so much,

Lottie

Hey Lottie,

I’m really glad to hear it worked perfectly!

If you found it helpful, I’d really appreciate it if you could give it a Like and mark it as the Solution on the forum—it helps others too!

Thanks again,

Rajat

1 Like

Absolutely! Thank you again :blush:

1 Like