Home › Forums › Quform WordPress › Passing dates to reservation form
- This topic has 37 replies, 2 voices, and was last updated 10 years, 4 months ago by
Ally.
- AuthorPosts
- April 10, 2015 at 10:21 pm #14915
seohawkins
ParticipantMy form is passing dates to a reservation form outside (brand hotel booking engine) but because the dates are broken up in to month/date/year it’s passing all of these and not being received by the booking engine correctly. How can I solve this so the date entry is just a blank field with the jquery calendar, and then I just pass the date as one set instead of three different ones (day, month,year)?
April 11, 2015 at 2:11 pm #14929Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 13, 2015 at 3:17 pm #14959seohawkins
ParticipantHere’s the code:
function my_form_redirect($url, $form)
{
$data = array(
‘fromDate’ => $form->getValue(‘iphorm_4_7’),
‘toDate’ => $form->getValue(‘iphorm_4_8’),
‘numberOfRooms’ => $form->getValue(‘iphorm_4_10’),
‘numberOfGuests’ => $form->getValue(‘iphorm_4_9’),
‘propertyCode’ => $form->getValue(‘iphorm_4_11’),);
$url = add_query_arg($data, ‘http://www.marriott.com/reservation/availabilitySearch.mi’);
return $url;
}
add_action(‘iphorm_success_redirect_url_4’, ‘my_form_redirect’, 10, 2);April 14, 2015 at 8:12 pm #14982seohawkins
ParticipantCan someone please help me with this??
April 15, 2015 at 4:09 pm #14989Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 15, 2015 at 4:15 pm #14990seohawkins
ParticipantAlly,
This just broke my Aveda theme completely, and then doesn’t work on a basic wordpress 15 theme. Is there something that you did to change it so that it doesn’t work in wordpress?
James
April 15, 2015 at 4:19 pm #14992seohawkins
ParticipantAlly,
Here’s a screenshot from Dreamweaver of the Syntax error.
James
Attachments:
You must be logged in to view attached files.April 15, 2015 at 4:29 pm #14996Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 15, 2015 at 5:24 pm #14999seohawkins
ParticipantAlly,
I’ve used the same form live, and it doesn’t work. Works great in dev, but prod is not working. Can you help? It just seems to redirect back to the home page of the site. Here’s the URL: http://www.rendendowntown.com/
April 15, 2015 at 5:30 pm #15001Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 15, 2015 at 5:37 pm #15003seohawkins
ParticipantAlly,
I’m not seeing that. here’s a snapshot of a live page. Can you tell me where you’re seeing the form ID issue?
Attachments:
You must be logged in to view attached files.April 15, 2015 at 5:40 pm #15005Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 15, 2015 at 5:41 pm #15006seohawkins
ParticipantThe code from the live screenshot I just posted has the form changing from 1 to 4. Take a look at the image I just uploaded on my last post.
April 15, 2015 at 5:47 pm #15007seohawkins
ParticipantAlly,
Okay, I found where I didn’t change the form ID to 1.
Now, look at http://www.rendendowntown.com/. You’ll see the date is no longer being posted to the booking engine. There is a point after you press ‘reserve now’ that it resets the calendar ‘arrive’ and ‘depart’ to blank before you leave the page to the booking engine and it doesn’t carry the dates.
James
April 15, 2015 at 6:07 pm #15010Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.