Shopify themes, liquid, logos, and UX
You can absolutely achieve this by conditionally hiding the Add to Cart button and showing a "Notify me when available" button when the product is out of stock.
Here’s a general method using Shopify Liquid:
Go to Online Store > Themes > Edit code.
Open your main-product.liquid or product-form.liquid (varies by theme).
Locate the section where the "Add to cart" button is.
Replace it with this logic:
{% if product.available %} <button type="submit" class="product-form__submit button button--full-width"> {{ 'products.product.add_to_cart' | t }} </button> {% else %} <button type="button" class="button button--full-width notify-me-btn"> Notify me when available </button> {% endif %}
Optional: You can link this button to a [Back in Stock] app like Shopify’s "Back in Stock Notifications", Klaviyo, or Appikon to make it functional.
I'll fix this at no cost and ensure it's styled perfectly — just share your store URL and theme name/code access.
Need a Shopify Expert and Specialist? Let's chat on WhatsApp +923046983349 and bring your vision to life!
Custom Shopify Store Design | Premium Themes | Variant Apps Expert
Your Coffee Tip a seamless synergy. ☕❤️
You shouldn't need to so much coding yourself here, Klaviyo has an option in the javascript it had you paste for "replace_anchor" -- you should be able to set that to true:
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025