Support

Home Forums Event Espresso Premium Any way to filter or replace the login or filter the "Register" button?

Any way to filter or replace the login or filter the "Register" button?

Posted: June 26, 2019 at 8:49 am

Viewing 3 reply threads


alan.westley

June 26, 2019 at 8:49 am

We are using MiniOrange for our site login. We need to replace the login form on the Registration Checkout Page, step 1 part. I’ve been searching the forums and docs for a filter or hook that we can use but can’t seem to find a solution. We just need to replace the login with a little bit of custom JavaScript that we use to launch a MiniOrange Modal and they’ll be redirected back tot he page they were own so they’ll skip to step 2 then.

If that’s not possible on that page, on the page before it is there a way to filter the Register button? We could put the login button there for users who are not logged in and then when they come back they can click register after logging in.

Screenshots of where we mean:
null

null


alan.westley

June 26, 2019 at 8:51 am

Not sure why the screenshots aren’t loading, here’s the links:

Login

Register


Josh

  • Support Staff

June 26, 2019 at 12:36 pm

Hi,

The hook you could use in this case is dynamic, here’s a link to the source:

https://github.com/eventespresso/event-espresso-core/blob/master/modules/single_page_checkout/EED_Single_Page_Checkout.module.php#L1238

You would basically need to unhook and replace everything happening from the WP User Integration add-on that happens in this class:

https://github.com/eventespresso/eea-wpuser-integration/blob/master/EE_SPCO_Reg_Step_WP_User_Login.class.php

A simpler approach that wouldn’t involve as much development would be to use the “Ticket Capability Requirement” feature for the tickets. This also makes logging in a requirement, but allows for using your custom log in page without hooking into Single Page Checkout steps.

The “available for members only” message that’s displayed to logged out users can be customized with a minimal amount of coding. Here’s an example:

https://gist.github.com/joshfeck/1a574f951fea3941ef8bcd3681abbb5c


alan.westley

June 26, 2019 at 1:19 pm

Josh,

Thanks for the quick reply! I’ll try these out soon.

Viewing 3 reply threads

The support post ‘Any way to filter or replace the login or filter the "Register" button?’ 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