Support

Home Forums Multiple Event Registration Add-on Cart loses registrations after redirect

Cart loses registrations after redirect

Posted: March 7, 2016 at 2:33 pm

Viewing 7 reply threads


er777

March 7, 2016 at 2:33 pm

After I use the redirect as mentioned here: https://eventespresso.com/topic/multi-event-registration-continue-shopping-redirect/

the cart loses its events and starts back from 0, never accumulating the multiple events that this addon was supposed to enable.


Josh

  • Support Staff

March 7, 2016 at 2:52 pm

Hi there,

It will help to know the URL that’s set up for the redirect, as well as the exact code you used to set it up. Can you share that information so we can narrow down the cause a bit?


er777

March 7, 2016 at 2:55 pm

Sure,

Added to functions.php in my child theme:

// Multi Event registration Filter ReDirect(
function ee_mer_change_event_list_url(){
return ‘http://houstonmonart.com/calendar’;
}

add_filter( ‘FHEE__EED_Multi_Event_Registration__set_definitions__events_list_url’, ‘ee_mer_change_event_list_url’ );


er777

March 7, 2016 at 2:57 pm

You can try it yourself at: http://houstonmonart.com/calendar


Lorenzo Orlando Caum

  • Support Staff

March 7, 2016 at 4:43 pm

Hi there, thanks for sharing that link.

Your event pages including registration checkout are being cached via W3 total cache.

Could you please clear your cache and then setup no-cache rules?

https://eventespresso.com/wiki/setup-nocache-exclusion-rules-event-espresso/

Be sure to also include the calendar page in the no-cache rules. Your slug for that page will be:

/calendar/


Lorenzo


er777

March 7, 2016 at 4:58 pm

Thank you. Have done so.

wp-.*\.php
index\.php
/calendar/
/registration-checkout/
/transactions/
/thank-you/
/registration-cancelled/
/events/

but still have the same issue – cart does not remember the last event loaded into it.


er777

March 7, 2016 at 6:08 pm

It appears that using the /calendar redirect instead of the default events-list causes me to lose the cart each time. W3 Total Cache has been configured to ignore the appropriate pages.


Tony

  • Support Staff

March 8, 2016 at 3:19 am

Hi there,

Its not the redirect, it’s the calendar page itself.

If you open up the calendar page:

http://houstonmonart.com/calendar/

Then in another tab open an event:

http://houstonmonart.com/events/kungfupanda-full-day-2/

Add ticket to the cart and click View cart (Do not click to go back to the event list)

Now you’ll see the cart with 2 tickets set. Refresh the cart page, all good. Visit some of you other pages in another tab (not the calendar) and the refresh the cart page… all working fine and the session persists.

Now in the Calendar tab just refresh the calendar.

Go back to your cart and refresh. The tickets have been removed.

So its not the redirect but the page itself.

Looking through the Calendar source code it is still using database and object caching – http://take.ms/RUz1E

Can you temporarily de-activate ALL caching, you need to de-activate the caching within W3, then clear the cache. Do not simply disable the plugin as that does not remove the current cache.

Then retest, does the same happen then?

Viewing 7 reply threads

The support post ‘Cart loses registrations after redirect’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso