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 %}
User | RANK |
---|---|
180 | |
151 | |
81 | |
71 | |
60 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023