A space to discuss online store customization, theme development, and Liquid templating.
Hello,
I am using the Dawn theme 2.0 and I need to set my cart note as required.
I have tried using the "required" setting in the Shopify UI Elements Generator but that did not work. Any ideas on how I can make it mandatory for the customer to fill in before moving to the checkout?
Thank you,
Mauro
can you please issue or error details
Hello,
this is the code I used to edit the cart notes:
{%- if section.settings.show_cart_note -%}
<cart-note class="cart__note field">
<h2> <label for="Cart-note">{{ 'sections.cart.note' | t }}</label> </h2>
<p class="cart-attribute__field">
<input required class="required" type="radio" name="attributes[E se un prodotto è terminato? ]" value="Chiamata dello Shopper"{% if cart.attributes["E se un prodotto è terminato? "] == "Chiamata dello Shopper" %} {% endif %} checked> <span>Chiamata dello Shopper</span><br>
<input required class="required" type="radio" name="attributes[E se un prodotto è terminato? ]" value="Sostituzione dello Shopper"{% if cart.attributes["E se un prodotto è terminato? "] == "Sostituzione dello Shopper" %} {% endif %}> <span>Sostituzione dello Shopper</span><br>
<input required class="required" type="radio" name="attributes[E se un prodotto è terminato? ]" value="Non sostituire i prodotti terminati"{% if cart.attributes["E se un prodotto è terminato? "] == "Non sostituire i prodotti terminati" %} {% endif %}> <span>Non sostituire i prodotti terminati</span><br>
</p>
</cart-note>
{%- endif -%}
But despite the "required", the customer can still move to checkout without selecting an alternative.
How can I prevent the customer from checkout without selecting one of the three options?
Thank you,
Mauro
Mauro
are you check on theme option?
For dawn cart
you can try this slide out cart with notes option in the theme settings!
https://ecomgraduates.com/products/dawn-cart-drawer
Hi Mauro, did you find a solution to this issue? I'm running into the same problem. Please let me know thanks!
oh sorry for any issue can you please share store url so i will check and let you know