Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User returns to wrong shop language after login via Amazon #139

Open
timoterhaar opened this issue Aug 7, 2020 · 0 comments
Open

User returns to wrong shop language after login via Amazon #139

timoterhaar opened this issue Aug 7, 2020 · 0 comments

Comments

@timoterhaar
Copy link

Shop Configuration:

  • Multiple frontend languages:
    • English with language ID 0
    • German with language ID 1 (default language)

Scenario:

  • You are using the Safari browser
  • You are on the german shop frontend (basket page) and click the amazon pay button
  • You successfully log in with your Amazon credentials
  • After the shop page gets reloaded you are on the english shop frontend (checkout user page)

Solution:
Add the following language parameter to all return urls: &lang=[{$oViewConf->getActLanguageId()}]

Example bestitamazonpay4oxid_paybutton.tpl (line 85):

var newLocation = '[{$oViewConf->getSslSelfLink()|html_entity_decode}]'
    + 'cl=user&fnc=amazonLogin&redirectCl=user&lang=[{$oViewConf->getActLanguageId()}]'
    + '&amazonOrderReferenceId=' + amazonOrderReferenceId
    + '&access_token=' + addressConsentToken;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant