Make customer/special notes required on cart page

Pablo878
New Member
1 0 0

Hi,

I need to collect information from customers and am trying to use the special instructions on the cart page for this by having it be a required field.  I would like it to error if it is blank when you click checkout.  I have tried what is recommended elsewhere but it does not seem to be making it required.

My store is explorebymail.com

I have tried the following changes to cart-template.liquid

     <form action="{{ routes.cart_url }}" method="post" class="cart__form"> - Removed the attribute to not validate

     <textarea name="note" id="CartSpecialInstructions" class="cart-footer__note-input" rows="1" data-cart-note required>{{ cart.note }}</textarea> - added required to the text area

These are the two things I have seen recommended elsewhere but it does not seem to be working.

Thanks for the help.

0 Likes