Support

Home Forums Event Espresso Premium Add to Cart redirecting straight to payment

Add to Cart redirecting straight to payment

Posted: June 22, 2020 at 1:04 am


gmilne80

June 22, 2020 at 1:04 am

Using ee3 and multi event registration with the redirect to cart shortcodes is no longer taking people to the registration page. When the button to register is clicked it tries to redirect straight to payment rather than take users to the page ti fill in their registration details. This is happening on new events created and those that were already in place and previously working.

The site is:
https://cityofthedeadbookings.com/book/underground-booking/

I had recently moved domains and reset the support key, I have entered the key for the new domain in the settings and it is showing on the site as activated but not in my account here.

Thanks


Tony

  • Support Staff

June 22, 2020 at 10:59 am

Hi there,

I’ve just run a test registration on your site and was not directed to the payment options step, this is where I am directed:

https://monosnap.com/file/UIysftXgJhumjh9MwObj4pD3Z8Ulql

(Just to clarify, that’s not the payment options page. There is some hardcoded text within your page that refers to PayPal, but that’s not from Event Espresso itself).

When you moved domains, did you also move servers?

If you edit this page: https://cityofthedeadbookings.com/event-registration/

What shortcode is used on that page?

Note, the license key has no effect on EE’s functionality so the key not showing is not causing this issue, we’ll check that shortly but for now let’s get your events back up.


gmilne80

June 22, 2020 at 11:17 am

Hi TOny,

Thanks for getting back to me. The hardcoded tent is part of the the events registration page: https://cityofthedeadbookings.com/event-registration/ along with the shortcode. Here’s a copy of the full content of the page:

[ESPRESSO_EVENTS]

**Booking payments are made via PayPal.  To Pay with a credit/debit card select the guest checkout option on the PayPal page**

I’ve checked all the page settings in the Event Espresso General Settings and they are all correct and pointing to the pages with the appropriate shortcodes. These were all left the same when the domain was moved (this was down with the add-on Duplicator Pro). The issue seems to be affecting both events that were created before the domain move and any new ones I create.

Any help is greatly appreciated.
Thanks.


Tony

  • Support Staff

June 22, 2020 at 1:54 pm

Thanks for getting back to me. The hardcoded tent is part of the the events registration page: https://cityofthedeadbookings.com/event-registration/ along with the shortcode. Here’s a copy of the full content of the page:

Ok thank you, so do you see something different from my screenshot on your end? I’m just checking as I don’t see anything to do with payments so checking I’m getting the same as you.

I’ve checked all the page settings in the Event Espresso General Settings and they are all correct and pointing to the pages with the appropriate shortcodes.

Great.

These were all left the same when the domain was moved (this was down with the add-on Duplicator Pro).

So you didn’t just change domains, but changes servers?

The issue seems to be affecting both events that were created before the domain move and any new ones I create.

Yeah, I don’t think this is an issue with the events themselves.

Can you create a new test event that has ‘display registration form’ option set to yes? I’d like to test a registration without using MER.


gmilne80

June 22, 2020 at 3:02 pm

Ok thank you, so do you see something different from my screenshot on your end? I’m just checking as I don’t see anything to do with payments so checking I’m getting the same as you.

Yeah I’m seeing the same I was mistaken about it going to payment it was just the event registration page with the hard coded message.

So you didn’t just change domains, but changes servers?

Yes server and domain were changed the old domain was cityofthedeadtours.com

Can you create a new test event that has ‘display registration form’ option set to yes? I’d like to test a registration without using MER.

I’ve made a test event on 30th June at 8:30 am without any group bookings and just displaying the registration form. It seems to display the form for me.


Tony

  • Support Staff

June 22, 2020 at 3:26 pm

Ok, have you customized any of the templates/functions within EE?

Do you have any files in /wp-content/uploads/espresso/?


gmilne80

June 22, 2020 at 3:48 pm

The only changes I’ve made were to the attendee_list.php file which is in that folder. The changes made are from this thread here:
https://eventespresso.com/topic/ee3-attendee-list-filters/


Tony

  • Support Staff

June 22, 2020 at 4:39 pm

Ok, so I assume you have a backup of all files? If not create one. You can use duplicator and just download the full package if preferred.

Then deactivate and delete the multi event registration addon.

Download the latest version from your account page and install through Plugins -> Add new -> Upload plugin.

Then retest.

I suspect something hasn’t copied over correctly. The fact that the default registration process works points to the multi event registration templates being at fault so far.


gmilne80

June 23, 2020 at 2:26 am

Hi,

I’ve followed the steps above and after reinstalling the multi event registration add-on I’ve still go the same issue.

Would it be better for me to buy a support token to allow you to access the site directly and see if there is something I am missing?

Thanks again for all the help.


Tony

  • Support Staff

June 23, 2020 at 3:03 am

Sure, if you prefer we troubleshoot this directly you can use a support token.

Just to note, my next step would be to advise reinstalling the latest version of Event Espresso itself just to make sure everything within the core plugin is also correct so you may want to try that first.


gmilne80

June 23, 2020 at 3:43 am

Thanks Tony,

Just to speed it up a bit rather than going back and forward I’ve purchased and redeemed a support token. If you need any other details from me just let me know.


Tony

  • Support Staff

June 23, 2020 at 9:13 am

Ok, so I spent some time digging into this and the problem is due to sessions.

Some sessions are set to use session files in a /sessions/ directory and others are set to load from 10.xxx.x.xxx which normally means memcached has been enabled on your server.

You’ll need to contact your host and have them exclude your site from memcached for the checkout to function.


gmilne80

June 23, 2020 at 9:38 am

Thanks for this. I’ve contacted my hosting company and asked them to exclude memcached on it. Hopefully this sorts the issue, I’ll get back to you as soon as I hear from them.


gmilne80

June 24, 2020 at 1:51 pm

Unfortunately no joy, my host has removed memcached from the php.ini file but still getting the same issue when trying to add to cart for a multi event booking.

Is there anything else you can suggest to resolve this issue?


Tony

  • Support Staff

June 25, 2020 at 5:39 am

I checked your site and memcached is still enabled.

I’ll explain a little on how I’m testing this so you know.

In \event-espresso\includes\functions\cart.php there is a
event_espresso_add_item_to_session() function. That function, well, adds items to the current session.

If I add: echo "<pre>", print_r( session_save_path() ), "</pre>";

When you add an event to the session by clicking the add to cart button it will output the session save_path value and we can capture that in Google Chrome.

Like so – https://monosnap.com/file/fyWVEoYCdM9hY6USTpimxtjsHQrjwL

That code breaks the Ajax request used to add the session so if I leave it o the site, all you’ll get is a spinning wheel when you add an event, so again I’ve removed it now but the screenshot shows that memcached is used on your site.


gmilne80

June 25, 2020 at 10:12 am

Thanks for your patience with this and for getting back to me. I’ve forwarded your info on to our web host to see if they can come up with a solution but if not I may just transfer from them to your recommended host of wp engine as I have had numerous issues with them recently.

If I do go down this path do you have an associate link or anything to wp engine that I should use to sign up to ensure you are credited with the business going to them?


Tony

  • Support Staff

June 26, 2020 at 2:46 am

Firstly, thank you for asking if we have a referral link, we do and it is:

https://eventespresso.com/go/wpengine/

WP Engine enables server-side caching on all pages by default but it can easily be disabled with a quick email to them (they need to exclude all of the ‘Critial Pages’ set in General Settings).

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 3 months, 1 week ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[gravityform id=80 title=false description=false ajax=false]
<div class='gf_browser_unknown gform_wrapper' id='gform_wrapper_80' ><form method='post' enctype='multipart/form-data' id='gform_80' action='/topic/add-to-cart-redirecting-straight-to-payment/'> <div class='gform_body'><ul id='gform_fields_80' class='gform_fields top_label form_sublabel_below description_below'><li id='field_80_1' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_1' >First name<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_text'><input name='input_1' id='input_80_1' type='text' value='' class='medium' aria-required="true" aria-invalid="false" /></div></li><li id='field_80_2' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_2' >Email address<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_email'> <input name='input_2' id='input_80_2' type='email' value='' class='medium' aria-required="true" aria-invalid="false" /> </div></li><li id='field_80_3' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' >GDPR Agreement<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_checkbox'><ul class='gfield_checkbox' id='input_80_3'><li class='gchoice_80_3_1'> <input name='input_3.1' type='checkbox' value='I consent to have this website store my submitted information so they can respond to my inquiry.' id='choice_80_3_1' /> <label for='choice_80_3_1' id='label_80_3_1'>I consent to have this website store my submitted information so they can respond to my inquiry.</label> </li></ul></div></li><li id='field_80_4' class='gfield gform_validation_container field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_4' >Comments</label><div class='ginput_container'><input name='input_4' id='input_80_4' type='text' value='' autocomplete='off'/></div><div class='gfield_description' id='gfield_description_80_4'>This field is for validation purposes and should be left unchanged.</div></li> </ul></div> <div class='gform_footer top_label'> <input type='submit' id='gform_submit_button_80' class='gform_button button' value='Download Now' onclick='if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} ' onkeypress='if( event.keyCode == 13 ){ if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} jQuery("#gform_80").trigger("submit",[true]); }' /> <input type='hidden' class='gform_hidden' name='is_submit_80' value='1' /> <input type='hidden' class='gform_hidden' name='gform_submit' value='80' /> <input type='hidden' class='gform_hidden' name='gform_unique_id' value='' /> <input type='hidden' class='gform_hidden' name='state_80' value='WyJbXSIsIjBiNjdjZjkyMDUzOWUxOWY5Y2NiZjIwMzM4YjA1Mjk4Il0=' /> <input type='hidden' class='gform_hidden' name='gform_target_page_number_80' id='gform_target_page_number_80' value='0' /> <input type='hidden' class='gform_hidden' name='gform_source_page_number_80' id='gform_source_page_number_80' value='1' /> <input type='hidden' name='gform_field_values' value='' /> </div> </form> </div><script type='text/javascript'> jQuery(document).bind('gform_post_render', function(event, formId, currentPage){if(formId == 80) {} } );jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit){} );</script><script type='text/javascript'> jQuery(document).ready(function(){jQuery(document).trigger('gform_post_render', [80, 1]) } ); </script>
[i]
[i]