Welcome to Discussion Forum, where you can ask questions and receive answers from other members of the community.

Adding a date-picker field during checkout : Prestashop 1.6

0 like 0 dislike
Hi,
 
My Web site is renting out products so I need to add "from" and "to" date-picker forms to checkout.
I managed to add the forms and figured I will receive the information by adding the date inputs to '#message' variable.
 
So in order-opc.js in
 
$('#message').blur(function()
I changed the data line to:
 
data: 'ajax=true&method=updateMessage&message=' + encodeURIComponent($('#message').val()).concat(encodeURIComponent($('#message_delivery').val()), encodeURIComponent($('#message_from').val())) + '&token=' + static_token ,
 
However it only saves the '#message_delivery' and '#message_from', but not the '#message' (referring in my case to the „from:“ datepicker input).
 
What am I doing wrong? How could I save all three inputs to #message variable?
 
asked Jun 13, 2017 in Prestashop by harsh (8,710 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Related questions

0 like 0 dislike
1 answer 703 views
0 like 0 dislike
1 answer 3,116 views
0 like 0 dislike
0 answers 106 views
106 views asked Sep 8, 2017 in Prestashop by harsh (8,710 points)
0 like 0 dislike
0 answers 304 views
304 views asked Apr 27, 2017 in Prestashop by harsh (8,710 points)
0 like 0 dislike
1 answer 708 views
708 views asked Feb 25, 2017 in Prestashop by harsh (8,710 points)
...