Support

Home Forums Event Espresso Premium Pop-up for next action after adding to cart not working

Pop-up for next action after adding to cart not working

Posted: December 9, 2018 at 7:44 pm

Viewing 4 reply threads


lupineart

December 9, 2018 at 7:44 pm

Hey guys,

Just noticed this, possibly since WP 5, but the window that pops up after they click the ‘add to event cart’ button does not appear anymore, it just reloads the event and changes the button to ‘view event cart’.

https://lupineart.com/events/your-studio-new-year-2019/

I added this to my custom functions to change some text, but removed it and found it didn’t make a difference to the above issue.


function tw_ee_return_cart() {
return 'Cart';
}
add_filter( 'FHEE__EED_Multi_Event_Registration__set_definitions__event_cart_name', 'tw_ee_return_cart' );
// also filter the empty cart message:
function my_ee_cart_is_empty() {
return 'The cart is empty';
}
add_filter( 'FHEE__EE_Event_Cart_Line_Item_Display_Strategy___empty_msg_row', 'my_ee_cart_is_empty' );

/*Add to event cart text change*/
function ee_my_custom_return_to_events() {
return 'Add to cart';
}
add_filter( 'FHEE__EED_Multi_Event_Registration__return_to_events_list_btn_txt', 'ee_my_custom_return_to_events' );

Thanks,

Derek


lupineart

December 9, 2018 at 7:51 pm

Sorry, just to clarify, I’m talking about the window that opens up asking the user to go to cart or go back to event list, etc. Thanks, Derek


lupineart

December 9, 2018 at 8:01 pm

I added this, just to keep keep the user flowing in the right direction rather than reloading the event page they were on:

add_filter( 'FHEE__EED_Multi_Event_Registration__filter_ticket_selector_redirect_url__redirect_to_cart', '__return_true', 10);

This is just temporary until I hear back…

Thanks, Derek


Josh

  • Support Staff

December 10, 2018 at 9:24 am

Hi Derek,

I checked the source of the page you linked to and it appears that the Autoptimize plugin is causing some JavaScript errors. If you temporarily deactivate Autopitmize does the Pop-up begin working again?


lupineart

December 10, 2018 at 9:50 am

Yep, working again thanks.

Viewing 4 reply threads

The support post ‘Pop-up for next action after adding to cart not working’ 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