Passing dates to reservation form

Home Forums Quform WordPress Passing dates to reservation form

This topic is: not resolved
Viewing 15 posts - 16 through 30 (of 38 total)
  • Author
    Posts
  • #15013
    seohawkins
    Participant

    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

    #15014
    seohawkins
    Participant

    Ally,

    I’m sorry! Is there a way to have the reservations button trigger a new window?

    James

    #15053
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #15113
    seohawkins
    Participant

    Ally,

    It’s still not passing the dates correctly. Can you take a look?

    http://www.rendendowntown.com

    Thanks! Can I buy you a few coffee’s at Starbucks?

    James

    #15132
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #15142
    seohawkins
    Participant

    So 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

    #15162
    seohawkins
    Participant

    Ally,

    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?

    #15164
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #15165
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #15173
    seohawkins
    Participant

    You’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.

    #15189
    seohawkins
    Participant

    Can someone please help me with this?

    #15200
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #15205
    seohawkins
    Participant

    Hi 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

    #15206
    seohawkins
    Participant

    Ally,

    Got you more coffee and cake this morning. Just want to make sure it gets to YOU, and not to someone else.

    James

    #15246
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 15 posts - 16 through 30 (of 38 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy