Support

Home Forums Event Espresso Premium Add to cart pop-up window in wrong location. How to fix?

Add to cart pop-up window in wrong location. How to fix?

Posted: May 11, 2018 at 9:20 am


Smartycat1

May 11, 2018 at 9:20 am

After, adding items to the cart with MER (multi-event registration), the pop-up window doesn’t display in the correct position within the browser window. How do I fix this?

Screenshot example:
https://www.dropbox.com/s/hrd0cdu3jodf4xj/Screen%20Shot%202018-05-10%20at%208.43.36%20PM.png?dl=0

Thanks.


Smartycat1

May 11, 2018 at 10:26 am

I do have this code in my functions.php file, could any of it be effecting the pop-up window? Doesn’t seem likely, but I don’t know.

//Change ‘EVENT CART’ and related Cart pages, pop ups and messages
//Change ‘Event Cart’ to Cart
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’ );

Thanks.


Josh

  • Support Staff

May 11, 2018 at 11:21 am

It looks like a conflict with Beaver Builder where the cart modal isn’t being injected into its normal location on the page (the top of the page) and instead it’s being injected into the bottom of the page.

I’ll see if I can find a workaround so Beaver Builder will allow the cart modal to be at the top of the page.


Josh

  • Support Staff

May 11, 2018 at 11:59 am

You can add this to your site:

https://gist.github.com/joshfeck/fa4bd6b11bccbc74e75b6cb02bd023dc

You can add the above to a functions plugin or into your child theme’s functions.php file.

This may not fix the cart pop up window location, but it should fix another related issue I’m seeing on your site.


Smartycat1

May 11, 2018 at 2:58 pm

Okay, I added the provided code to the child theme’s function.php file. I tested in Safari, Firefox and Chrome and the pop-up window works. Thanks.

The support post ‘Add to cart pop-up window in wrong location. How to fix?’ 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