Add a calendar or text box to cart

Add a calendar or text box to cart

Georgiegirl
Tourist
4 0 1

I have tried to add a calendar date picker to my cart and I cannot get it to work.  I am now trying to add a text box but I'm still getting the same warning that prevents me from checking out.  Can any one advise me where I have gone wrong please?497vmek9.pngIMG_1336.jpg

Replies 7 (7)

Guleria
Shopify Partner
4165 811 1168

Hello @Georgiegirl ,

 

Please share the code you are using or share the store URL.

 

Regards
Guleria

 

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
Georgiegirl
Tourist
4 0 1

The code that I've used for the text box is: 

<label for="customMessage" class="form__label">When is your wedding date?:</label>
<textarea id="customMessage" name="properties[Custom Message]" class="form__input"></textarea>

 

Ideally I would like to add a calendar date picker though.

My site is www.mrandmissive.co.uk

Thanks

Guleria
Shopify Partner
4165 811 1168

Try this code for text box

<label for="customMessage" class="form__label">When is your wedding date?:</label>
<input type="text"  id="customMessage" name="properties[Custom Message]" class="form__input"> 

or use this one for datepicker

<label for="customMessage" class="form__label">When is your wedding date?:</label>
<input type="date"  id="customMessage" name="properties[Custom Message]" class="form__input"> 

Regards
Guleria

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
Georgiegirl
Tourist
4 0 1

Thank you, but I am still getting the same error message!

Guleria
Shopify Partner
4165 811 1168

Use the code outside the form tag ( add it inside cart-note tag )  and add this form="cart" to input field

like this

 

<label for="customMessage" class="form__label">When is your wedding date?:</label>
<input type="text" form="cart" id="customMessage" name="properties[Custom Message]" class="form__input"> 

 

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
Georgiegirl
Tourist
4 0 1

I have added the code outside of form buy inside cart-items as shown below.  I'm having the same problem though!

IMG_1337.jpg

I used to have a date picker on the cart page but took it off a while ago, could the error message be because I have done something incorrect somewhere else? Sorry I'm not very good with tech!

Guleria
Shopify Partner
4165 811 1168

Strange need to check the code why its not working
btw for now please use the code b/w the form tags.

And add this attribute in for tag like this

 <form novalidate>

 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder