Re: Cart Note a required field

How to make cart note a mandatory field in Mr Parker 2.0 theme?

Chloe_Johnson
Tourist
9 0 2
We are upgrading to 2.0 Mr Parker theme and have enabled the simple cart note. However,  we want to make it a mandatory field before customers can check out. Does anyone know how we could do that? 
I'm fine with code if instructions are clear.  Thanks!
 
Replies 3 (3)

Tristram
Shopify Partner
90 12 19

I'm not familiar with Mr Parker theme, but if the cart note works the same as other 2.0 stores, then its going to be located in a cart-footer liquid or it should be in the same place where the cart subtotals are. You'll be looking for a textarea input with: name="note"

and then inside that textare tag you want to include the word required. For me the textarea with required looks something like:

<textarea required class="text-area field__input" name="note" form="cart" id="Cart-note" placeholder="{{ 'sections.cart.note' | t }}">{{ cart.note }}</textarea>

 

DigitalConsultant.xyz
kindredstudios
New Member
5 0 0

I am hoping to do the same thing and using Dawn. I found where you have this code and mine just had class="text-area field__input  and I just added required but it didn't seem to work

Tristram
Shopify Partner
90 12 19

can you show me the code that you created?

DigitalConsultant.xyz