Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Required Cart note Dawn theme

Mauro_Nicola
Tourist
10 0 2

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

Replies 6 (6)

KetanKumar
Shopify Partner
36822 3634 11960

@Mauro_Nicola 

can you please issue or error details 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Mauro_Nicola
Tourist
10 0 2

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

 

KetanKumar
Shopify Partner
36822 3634 11960

@Mauro_Nicola 

are you check on theme option?

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

EcomGraduates1
Shopify Partner
80 3 7

For dawn  cart  

you can try this  slide out cart with  notes  option in the theme settings! 

https://ecomgraduates.com/products/dawn-cart-drawer

We design and develop stunning websites to make your customers fall in love with your business.
5 star reviews https://ecomgraduates.com/

emmap2407
Tourist
7 0 1

Hi Mauro, did you find a solution to this issue? I'm running into the same problem. Please let me know thanks!

KetanKumar
Shopify Partner
36822 3634 11960

@emmap2407 

oh sorry for any issue can you please share store url so i will check and let you know 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing