Shopify themes, liquid, logos, and UX
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
Solved! Go to the solution
This is an accepted solution.
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' %}
<button type="submit" name="add" class="product-form__submit button button--primary">
Pre-order Now
</button>
{% else %}
<button type="submit" name="add" class="product-form__submit button button--primary">
{{ 'products.product.add_to_cart' | t }}
</button>
{% endif %}
Would you like to use dynamic text like “Order for May 15th” based on the product?
Thanks
Rajat
This is an accepted solution.
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' %}
<button type="submit" name="add" class="product-form__submit button button--primary">
Pre-order Now
</button>
{% else %}
<button type="submit" name="add" class="product-form__submit button button--primary">
{{ 'products.product.add_to_cart' | t }}
</button>
{% endif %}
Would you like to use dynamic text like “Order for May 15th” based on the product?
Thanks
Rajat
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
Absolutely! Thank you again 😊
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025