fyreflyX Posted July 7, 2011 Share Posted July 7, 2011 Using PrestaShop v.1.4.3.0 & unmodified PrestaCart templateOn the Products Details page, the language selector doesn't change the language from English to French, or French to English.When hovering on the flag, it shows the correct URL - just the switch isn't happening when clicking on the flag.It works on all other pages, only affects the Product Details Page Link to comment Share on other sites More sharing options...
MahmutGulerce Posted July 7, 2011 Share Posted July 7, 2011 Hi;I have same. Its a reported BUG. It a htaccess issue.I fixed itopen /modules/blocklanguages/blocklanguages.tpl line 35 (ps v1.4.3)Change all line to following thats allSimply i added ?isolang={$language.iso_code} GET variable. It wont seems as SEF url but is not more serious than languages.Good luck. Link to comment Share on other sites More sharing options...
fyreflyX Posted July 7, 2011 Author Share Posted July 7, 2011 Thank you, Mahmutta. That did the trick to get by for now; but unfortunately, I'll need the SEF urls to work. I checked the bug tracker, but couldn't find the ticket so I can monitor for solutions / fixes. Would you know which ticket it is?Thanks! Link to comment Share on other sites More sharing options...
MahmutGulerce Posted July 8, 2011 Share Posted July 8, 2011 Hi:I cant find it again. But as i remember not fixed yet. Link to comment Share on other sites More sharing options...
fyreflyX Posted July 8, 2011 Author Share Posted July 8, 2011 Thank you for checking, Mahmutta. Hopefully its resolved soon. Link to comment Share on other sites More sharing options...
MahmutGulerce Posted July 8, 2011 Share Posted July 8, 2011 I will work on find more determined solution. But imediatly I cant. Please subscribe this topic Link to comment Share on other sites More sharing options...
fyreflyX Posted July 8, 2011 Author Share Posted July 8, 2011 Already subscribed :-)Thanks Mahmutta! Link to comment Share on other sites More sharing options...
cyjambo Posted July 19, 2011 Share Posted July 19, 2011 HI Mahmutta,I have this problem also, subscribed. Thanks for looking into it. Do you know when it will be fixed? Couldn't find it in Bug tracker.By the way your solution helped, so thanks for that!!! Peace,Jambo Link to comment Share on other sites More sharing options...
Thomas Didierjean Posted July 26, 2011 Share Posted July 26, 2011 Hi, I tried to replicate the problem but couldn't. With version 1.4.3, friendly url activated or not, I can switch between languages on the product page. Can you give me more details on how to reproduce the bug? Regards, Thomas Link to comment Share on other sites More sharing options...
bluecafe Posted July 28, 2011 Share Posted July 28, 2011 I am experiencing the same problem. Language switcher is working well except on the product detail page. .htaccess is generated via .htacess generator. Here is a link where you can see the problem http://cinemagie.de Link to comment Share on other sites More sharing options...
bluecafe Posted July 30, 2011 Share Posted July 30, 2011 I have updated to prestashop 3.4.4 and the problem is gone. P.S. Unfortunately it's still there. For some reason it is working in one category and not in the others ... Link to comment Share on other sites More sharing options...
bluecafe Posted August 2, 2011 Share Posted August 2, 2011 I think I figured it out when the error occurs. If the item is saved in the home category the rewritten url is yourdomain.tld/lang/item.html (without a category name) and the language switcher won't work on product detail pages. But if the item is saved in a subcategory and the url is yourdomain.tdl/category/lang/item.html the language switcher works (even if you check the home category later) Example: Item was saved in home category http://cinemagie.de/de/5-radieschen-von-unten.html language switcher won't work Item was saved in a sub category and the url includes the category name then the language switcher works http://cinemagie.de/en/filmplakate/2-the-tattooed-one.html Link to comment Share on other sites More sharing options...
bluecafe Posted August 3, 2011 Share Posted August 3, 2011 Maxence de Flotte has posted a fix. There are two lines of code to remove from classes/Tools.php http://scm.prestashop.com/viewrep/PrestaShop_v.1.4.x/classes/Tools.php?r1=7849&r2=7852 make sure to clear the cache and browser cache then the language switcher will work on all product detail pages! 1 Link to comment Share on other sites More sharing options...
virgawhiskeygravity Posted August 17, 2011 Share Posted August 17, 2011 Maxence de Flotte has posted a fix. There are two lines of code to remove from classes/Tools.php http://scm.prestashop.com/viewrep/PrestaShop_v.1.4.x/classes/Tools.php?r1=7849&r2=7852 make sure to clear the cache and browser cache then the language switcher will work on all product detail pages! This did the work! Thx P.S.: Better way is to override Tools.php. And also don't forget to generate a new htaccess file! ;-) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now