Shopify themes, liquid, logos, and UX
My question is: Does the notify me form only notify the customer/owner that the customer wants to know when the product is going to be back in stock or does this section of code automatically notify the customer that the product is back in stock. It looks like all this section of code does is notify the customer/owner that the shopper wants to know when the product is back in stock but doesn't automatically send out an email when it is back in stock. Example of form (https://www.botiki.com/collections/brighton-jewelry/products/j7071)
CODE:
{% if settings.notify_me_form %}
<div class="product__notify-form notify_form notify-form-{{ product.id }} card card-content" id="notify-form-{{ product.id }}" {% if product.available %}style="display:none"{% endif %}>
<p class="notify-form__success-message message"></p>
{% form 'contact', id: "notify_me" %}
{% if form.errors %}
<p><em>{{ 'products.notify_form.post_error' | t }}</em></p>
{% else %}
<p>
<label aria-hidden="true" class="visuallyhidden" for="contact[email]">
{{ 'products.notify_form.email' | t }}
</label>
<div class="notify-form__description content">
{% if settings.notify_me_description %}
{{ settings.notify_me_description }}
{% endif %}
</div>
<div class="notify_form__inputs {% if customer %}customer--true{% endif %}" data-url="{{ canonical_url }}">
{% if product.variants.size == 1 and product.available == false %}
{% if customer %}
{% capture notifyEmailInput %}
<input type="hidden" name="contact[email]" class="notify_email input" id="contact[email]" value="{{ customer.email }}" />
{% endcapture %}
{% else %}
{% capture notifyEmailInput %}
<input required type="email" class="notify_email input" name="contact[email]" id="contact[email]" placeholder="{{ 'products.notify_form.email' | t }}" value="{{ contact.fields.email }}" />
{% endcapture %}
{% endif %}
<input type="hidden" name="challenge" value="false" />
<input type="hidden" name="contact[body]" class="notify_form_message" data-body="{{ 'products.notify_form.message_content' | t: product: product.title, url: canonical_url }}" value="{{ 'products.notify_form.message_content' | t: product: product.title, url: canonical_url }}" />
<div class="field has-addons">
<div class="control">
{{ notifyEmailInput }}
</div>
<div class="control">
<input class="action_button is-inverse button" type="submit" value="{{ 'products.notify_form.send' | t }}" style="margin-bottom:0px" />
</div>
</div>
{% endif %}
</div>
</p>
{% endif %}
{% endform %}
</div>
{% endif %}
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024