Skip to content

Instantly share code, notes, and snippets.

View StopLooking's full-sized avatar

Craig Sadrovitz StopLooking

View GitHub Profile
@msmithstubbs
msmithstubbs / snippet-notify-me.liquid
Created November 25, 2012 11:45
Integrating Back In Stock with the notify me snippet
{% form 'contact' %}
{% if form.posted_successfully? %}
<p class="accent-text">Thanks! We will notify you when this product becomes available!</p>
{% else %}
<p>Click <a id="notify-me" href="#">here</a> to be notified by email when {{ product.title }} becomes available.</p>
{% endif %}
{% if form.errors %}
<div class="error feedback accent-text">
<p>Please provide a valid email address.</p>
</div>