Support

Home Forums Event Espresso Premium WooCommerce shop page & Event Espresso

WooCommerce shop page & Event Espresso

Posted: June 8, 2015 at 3:56 pm

Viewing 9 reply threads


Reece

June 8, 2015 at 3:56 pm

Hello,

Event Espresso is injecting its self into my WooCommerce shop page and ruinging the layout for tablet/mobile devices.

http://amywheeler.com/shop/

It is causing #espresso-notices, #espresso-ajax-loading, & #espresso-ajax-notices to be loaded in there. No amount of CSS I apply does the trick.

How can I stop this from happening?

Thank You


Reece

June 8, 2015 at 3:58 pm

I am running the latest version of both plugins.


Dean

June 9, 2015 at 4:09 am

Hi Reece,

I checked on of the Woocommerce pages on a mobile and couldn’t see any issues.

Can you clarify exactly how it is affecting the layout? Screenshots would be great if possible.

Thanks!


Reece

June 9, 2015 at 9:04 am

Dean,

Thank you for responding.
See the 2 attached images for my issue.

http://i.imgur.com/p60JuxR.png
http://i.imgur.com/JLVBpks.png

Thanks
-Reece


Josh

  • Support Staff

June 9, 2015 at 9:36 am

Hi Reece,

You can add the following line of code:
add_filter( 'FHEE__EE_Front_Controller__display_errors', '__return_false' );
just above:
if(have_posts()) :
in your WooCommerce shop page template and that will remove the extra notices HTML.


Reece

June 9, 2015 at 10:44 am

Josh,

Thank you for resolving this. Is there anyway we can integrate this into the functions file and make it so they only load on EE related pages?

Thanks
-Reece


Josh

  • Support Staff

June 9, 2015 at 12:17 pm

Hi Reece,

Yes, this can be added to a functions file:

function ee_tweak_display_errors(){
    if ( ! EE_Registry::instance()->REQ->is_espresso_page() ) {
        add_filter( 'FHEE__EE_Front_Controller__display_errors', '__return_false' );
    }
}   
add_action( 'AHEE__EE_Front_Controller__display_errors__begin', 'ee_tweak_display_errors' );

While I do not know the reasoning for the current behavior, I’ve put in a ticket to request a change so it only shows the notices on Event Espresso routes. If the change is implemented, the above code will no longer be necessary, and I’ll update this thread if/when the change makes it into a release update.


Reece

June 9, 2015 at 12:30 pm

Josh,

You are the man. Another thoroughly answered support ticket here on Event Espresso.
I’ll be sure to keep recommending your plugin for all my clients with event needs 🙂

Thanks
-Reece


Josh

  • Support Staff

June 9, 2015 at 12:33 pm

Thanks Reece.


Josh

  • Support Staff

June 19, 2015 at 9:35 am

Hi Reece,

A little update on this: The latest release of Event Espresso 4 (version 4.7.2) adds a conditional that’s basically the same as what’s in the above posted code. So once you update to 4.7.2 it’s no longer necessary to have that code in a functions file.

Viewing 9 reply threads

The support post ‘WooCommerce shop page & Event Espresso’ 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