No language changing in wordpress if already changed in Prestashop
-
I’ve got a two languages website. French/English.
When you switch from French to English in Prestashop, back on the blog, you can’t change back to french language correctly.
The blog content will be changed to french but not the Prestashop content (top nav menu in my case).
I found out in prestashop-integration-controller.php that the displayHeader function verifies whether prestashop context already exists or not. If so, the language cookie is not reset.
I hacked the function line 109 and set id_lang. Now everything works.
$current_id_lang = $cookie->id_lang; $cookie->id_lang = $prestashop_integration->psLang(); if ( $current_id_lang && $current_id_lang != $cookie->id_lang ) $cookie->write();
Am I right ?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘No language changing in wordpress if already changed in Prestashop’ is closed to new replies.