Support

Home Forums Event Espresso Premium Register Now Button – Specific Url Redirect?

Register Now Button – Specific Url Redirect?

Posted: January 25, 2016 at 5:32 pm


institutleadership

January 25, 2016 at 5:32 pm

Hello,

I am using on my website two languages: French and English. The English content is available through URLs that start by “mydomain.com/en/” (e.g. English translated event is “mydomain.com/en/event/xxxxxx”)

On the Event Details Page, there is a “Register Now” button which when clicked goes to “http://www.mydomain.com/registration-checkout/#checkout” which defaults to French language instead of “http://www.mydomain.com/en/registration-checkout/#checkout“.

I have inspected using Chrome Developer Tools the Register Now button and i saw it is contained into a form. I managed to have the form action url for the register button to go to the “mydomain.com/en/event/xxxxxx” but the page that I get when i click the button is still “http://www.mydomain.com/registration-checkout/#checkout” (without the “/en/”).

The following code is the HTML from the event details page for the “Register Button” where you can see the form action is correct including the “/en/”, but when clicked it goes to the page without the “en”.

<form action="http://www.institutleadership.ca/en/events/la-prise-de-decision-journee-unique-de-formation/" method="POST">
<input id="process_ticket_selections_nonce" type="hidden" value="da6502aa61" name="process_ticket_selections_nonce">
<input type="hidden" value="/en/events/la-prise-de-decision-journee-unique-de-formation/" name="_wp_http_referer">
<input type="hidden" value="process_ticket_selections" name="ee">
<div id="tkt-slctr-tbl-wrap-dv-2114" class="tkt-slctr-tbl-wrap-dv">
<input id="ticket-selector-submit-2114-btn" class="ticket-selector-submit-btn ticket-selector-submit-ajax" type="submit" value="Register Now">
<div class="clear">
</form>

Register Button

Could you tell me what i need to modify and in which file? I have strong PHP experience but i just don’t know where the redirect takes place.

Thank you


Tony

  • Support Staff

January 26, 2016 at 6:18 am

Hi there,

I’m sorry, Event Espresso 4 is not compatible with WPML. Please see this thread in the WPML forums for more information on why:
https://wpml.org/forums/topic/how-to-translate-event-espresso-4-events-with-wpml/

I’ll check in with our developers (currently offline due to time differences) and see if there is a hook available for the redirect although I suspect it may not work as expected.

The support post ‘Register Now Button – Specific Url 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