Support

Home Forums Event Espresso Premium Adjust URL after selecting number of tickets (Language related)

Adjust URL after selecting number of tickets (Language related)

Posted: March 11, 2015 at 10:19 pm

Viewing 1 reply thread


Haewon Helen Whang

March 11, 2015 at 10:19 pm

Event Espresso: 4.3.2.p
WordPress 3.8.3

Hello,

I am running a language plugin called qTranslate that allows me to change the language of the website by adding the appropriate language code after the domain name. For example:

http://example.com/ – English language website
http://example.com/KO/ – Korean language website

The issue I’m having is, when I’m on a Korean-version of an Event Espresso ticket selector page (ie: http://example.com/KO/events/my-test-event/), after I select the number of tickets and click the Register Now button,I get sent to the English-version of the checkout page.

I get sent to http://example.com/registration-checkout/?ee=_register
when I need it to send me to http://example.com/KO/registration-checkout/?ee=_register

(Notice the “KO/” after the domain name)

How can I fix this? Is it possible without having to edit the core plugin files?


Lorenzo Orlando Caum

  • Support Staff

March 12, 2015 at 6:20 pm

Hi, that won’t work as expected as the other URLs such as the return URL for PayPal will still point to the english version of the site.

We also do not support WPML or qTranslate at this time.

Here is feedback from a developer on how to handle this:

1. The critical page URLs are set via EE_Core_Config
which is found in the EE_Config.core.php file:

/wp-content/plugins/event-espresso-core-reg/core/

2. Event Espresso uses get_permalink( $page_id) to return the base link for the critical page requested.

3. You would need to re-add filters that are used in the core WordPress get_permalink function. Then check for the critical page ID and then manipulate the URL in one of those filters when on a /KO/ route (visitor is browsing KO version of the site).


Lorenzo

Viewing 1 reply thread

The support post ‘Adjust URL after selecting number of tickets (Language related)’ 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