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 |
---|---|
178 | |
154 | |
72 | |
46 | |
36 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023