Home › Forums › Quform WordPress › Passing dates to reservation form
- This topic has 37 replies, 2 voices, and was last updated 8 years, 12 months ago by Ally.
- AuthorPosts
- April 15, 2015 at 6:49 pm #15013seohawkinsParticipant
Ally,
That seems to have fixed it.
Now, is there any way to track this in Google Analytics? How can I track forms this way?
James
April 15, 2015 at 6:50 pm #15014seohawkinsParticipantAlly,
I’m sorry! Is there a way to have the reservations button trigger a new window?
James
April 20, 2015 at 1:29 pm #15053AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 22, 2015 at 6:22 pm #15113seohawkinsParticipantAlly,
It’s still not passing the dates correctly. Can you take a look?
Thanks! Can I buy you a few coffee’s at Starbucks?
James
April 24, 2015 at 10:06 am #15132AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 24, 2015 at 3:45 pm #15142seohawkinsParticipantSo it’s passing the dates for you? Try multiple instances, since it’s not working for me.
I purchased coffee AND cake for you per the link below. Who said Americans are cheap? 😉
James
April 28, 2015 at 7:28 pm #15162seohawkinsParticipantAlly,
Hi there! I have another question, this time passing the booking form to a Hilton hotel, whereas before it was a Marriott (Renaissance) hotel. Here’s what I put in on the back end, but it’s not passing the dates to the reservation form on the Hilton side:
/**
* Reservation Widget
*/function my_form_redirect($url, $form)
{
$fromDate = $form->getValue(‘iphorm_5_7’);
$fromDate[‘month’] = str_pad($fromDate[‘month’], 2, ‘0’, STR_PAD_LEFT);
$fromDate[‘day’] = str_pad($fromDate[‘day’], 2, ‘0’, STR_PAD_LEFT);
$fromDate[‘year’] = substr($fromDate[‘year’], -2);
$fromDate = $fromDate[‘month’] . ‘/’ . $fromDate[‘day’] . ‘/’ . $fromDate[‘year’];$toDate = $form->getValue(‘iphorm_5_8’);
$toDate[‘month’] = str_pad($toDate[‘month’], 2, ‘0’, STR_PAD_LEFT);
$toDate[‘day’] = str_pad($toDate[‘day’], 2, ‘0’, STR_PAD_LEFT);
$toDate[‘year’] = substr($toDate[‘year’], -2);
$toDate = $toDate[‘month’] . ‘/’ . $toDate[‘day’] . ‘/’ . $toDate[‘year’];$data = array(
‘arrivalDate’ => $fromDate,
‘departure’ => $toDate,
‘numRooms’ => $form->getValue(‘iphorm_5_10’),
‘numAdults’ => $form->getValue(‘iphorm_5_9’),
‘ctyhocn’ => $form->getValue(‘iphorm_5_11’),
‘inputModule’=> $form->getValue(‘iphorm_5_12’),);
$url = add_query_arg($data, ‘https://secure3.hilton.com/en_US/dt/reservation/book.htm’);
return $url;
}
add_action(‘iphorm_success_redirect_url_5’, ‘my_form_redirect’, 10, 2);Can you help?
April 30, 2015 at 11:43 am #15164AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 30, 2015 at 11:43 am #15165AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 30, 2015 at 7:14 pm #15173seohawkinsParticipantYou’re very welcome!
The date is showing in the URL. Here’s what I have from my previous programmer as to what should be passed to Hilton:
arrival={Arrival:2:hilton}&departure={Departure:3:hilton}&numAdults={Adults:5}&ctyhocn={Code:6}&inputModule={inputModule:8}
This is how I set it up for when we were using Gravity Forms.
May 4, 2015 at 3:16 pm #15189seohawkinsParticipantCan someone please help me with this?
May 5, 2015 at 4:18 pm #15200AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
May 6, 2015 at 3:05 pm #15205seohawkinsParticipantHi Ally!
It was http://www.thehiltonseattle.com/ you can see it working there. I HATE that format and we can’t make it look prettier, which is why we love your program.
James
May 6, 2015 at 3:08 pm #15206seohawkinsParticipantAlly,
Got you more coffee and cake this morning. Just want to make sure it gets to YOU, and not to someone else.
James
May 10, 2015 at 8:42 pm #15246AllySupport 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.