completepresta Posted September 20, 2014 Share Posted September 20, 2014 (edited) I have prestashop 1.5 installed and problems with multilanguage in multistore.I have made 2 stores in multistore:1) www.domain.nl2) www.domain.deI setup localization as following:1) default language and default country: (Dutch) NL 2) default language and default country: (German) DE Store #1 all is fine. Store #2 is acting weird its mixed up with English/Dutch/GermanSome modules are Dutch, Some English, Some GermanCategories and SEO are in German, Products and URL's are in Dutch. Smarty Cache Compile is turned off I hope someone can help me with this problem. Edited September 24, 2014 by jsonjuri (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 21, 2014 Share Posted September 21, 2014 do you have some sort of hack to modify url's? there is no language portion of the url for .de did you build the de from .nl, they share everything? theme/module etc? maybe best to also supply .nl domain as well and exact ps version 1 Link to comment Share on other sites More sharing options...
completepresta Posted September 21, 2014 Author Share Posted September 21, 2014 (edited) do you have some sort of hack to modify url's? there is no language portion of the url for .de did you build the de from .nl, they share everything? theme/module etc? maybe best to also supply .nl domain as well and exact ps version Thank you for the reply El Patron, There is no language portion because from the 2 webshops each just use one language. The 2 stores share everything on modules, products, categories but not the theme. The version of my prestashop is PrestaShop™ 1.5.6.0. After a bit digging today i found out following: I download classes folder from Prestashop 1.5 GIT and replaced it with my classes folder on the webserver. Then i removed class_index.php and after removing this file i set back the old classes folder again. Weird enough now all the website is like it should be, and everything of store #2 is in German. I am not sure now if the bug is somewhere in classes folder or in the class_index.php I have done this action before and after hours it changes back to the mixed up languages problem again. I hope everything now stays like it should be, anyway i am very curious what can cause this problem. Edited September 24, 2014 by jsonjuri (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 21, 2014 Share Posted September 21, 2014 Thank you for the reply El Patron, There is no language portion because from the 2 webshops each just use one language. The 2 stores share everything on modules, products, categories but not the theme. The version of my prestashop is PrestaShop™ 1.5.6.0. My other store is: www.e-smoker.nl After a bit digging today i found out following: I download classes folder from Prestashop 1.5 GIT and replaced it with my classes folder on the webserver. Then i removed class_index.php and after removing this file i set back the old classes folder again. Weird enough now all the website is like it should be, and everything of store #2 is in German. I am not sure now if the bug is somewhere in classes folder or in the class_index.php I have done this action before and after hours it changes back to the mixed up languages problem again. I hope everything now stays like it should be, anyway i am very curious what can cause this problem. yes, I keep my fingers crossed for you...thanks for sharing what you did 1 Link to comment Share on other sites More sharing options...
completepresta Posted September 21, 2014 Author Share Posted September 21, 2014 (edited) yes, I keep my fingers crossed for you...thanks for sharing what you did Now several hours later the problem is back again, weird or what? I did not make any changes in between, cache still turned off but still it looks like some cache issue? Do you have any ideas or guesses what can cause this problem or where i should looking for? Edited September 21, 2014 by jsonjuri (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 22, 2014 Share Posted September 22, 2014 sometimes when we make module translations we do so with 'theme' selected and not 'core' no-theme. this put the module translations in themes/yourtheme/modules/module_name/translations. So xlations for a module in one theme would not carry across to another even when module shared across shops... but this could not be only possible issue because this would not affect products or other non-theme xlations. under performance tab in back office, scroll to bottom, any cache? mem/apc/file? if you could also screen shot and remark on what is incorrect that might help for non-german/dutch speakers because it's difficult to tell the two apart looking at shop. 1 Link to comment Share on other sites More sharing options...
completepresta Posted September 22, 2014 Author Share Posted September 22, 2014 sometimes when we make module translations we do so with 'theme' selected and not 'core' no-theme. this put the module translations in themes/yourtheme/modules/module_name/translations. So xlations for a module in one theme would not carry across to another even when module shared across shops... but this could not be only possible issue because this would not affect products or other non-theme xlations. under performance tab in back office, scroll to bottom, any cache? mem/apc/file? if you could also screen shot and remark on what is incorrect that might help for non-german/dutch speakers because it's difficult to tell the two apart looking at shop. Thank again for your response! I think you might be right, i turned off xcache now (that was what i were using) It seems steady now for many hours, i think its wait and see. I hope this fixed the issue, but you never know what time will do with prestashop Link to comment Share on other sites More sharing options...
El Patron Posted September 22, 2014 Share Posted September 22, 2014 I prefer solutions that are directly related to PrestaShop rather than underlying cache unless one 1) has understanding of cache and 2) can control cache by page. when we can upgrade to latest php, then that built in cache will work better for everyone. Link to comment Share on other sites More sharing options...
completepresta Posted September 22, 2014 Author Share Posted September 22, 2014 I prefer solutions that are directly related to PrestaShop rather than underlying cache unless one 1) has understanding of cache and 2) can control cache by page. when we can upgrade to latest php, then that built in cache will work better for everyone. Yes you are right, it's not really a solution. Anyway, the problem is back again... It looks like at day everything is fine but at night it reset to dutch language. I want to hire professional help of prestashop support team to fix the issue and when it's fixed see if we can post the solution here because i am totally lost in solutions. Do you think that is possible? Link to comment Share on other sites More sharing options...
El Patron Posted September 23, 2014 Share Posted September 23, 2014 yes, sometimes to return to productivity having paid solution can save our sanity. Link to comment Share on other sites More sharing options...
completepresta Posted September 23, 2014 Author Share Posted September 23, 2014 yes, sometimes to return to productivity having paid solution can save our sanity. I discovered something, in the database i found products with id_lang=7 and id_lang=3 My language id's are 1 for Dutch and 2 for German. I noticed prestashop default id_lang for Dutch is 7 and German is 3, same like i found products in the database so this might be the problem, now i have to see how i will change all these language id's because there are many Link to comment Share on other sites More sharing options...
El Patron Posted September 23, 2014 Share Posted September 23, 2014 I discovered something, in the database i found products with id_lang=7 and id_lang=3 My language id's are 1 for Dutch and 2 for German. I noticed prestashop default id_lang for Dutch is 7 and German is 3, same like i found products in the database so this might be the problem, now i have to see how i will change all these language id's because there are many holy moly, yes, that is loco! make sure to back up... I think you got it! Link to comment Share on other sites More sharing options...
completepresta Posted September 24, 2014 Author Share Posted September 24, 2014 (edited) holy moly, yes, that is loco! make sure to back up... I think you got it! It didn't work, i gave up I changed all Dutch language to German and did some tweaks now it works fine, but not the way it should be fixed, just a workaround Edited September 24, 2014 by jsonjuri (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 24, 2014 Share Posted September 24, 2014 It didn't work, i gave up I changed all Dutch language to German and did some tweaks now it works fine, but not the way it should be fixed, just a workaround yes this is very worrisome. if you do a new xlate does it assign the id's in the db ok? Link to comment Share on other sites More sharing options...
completepresta Posted September 24, 2014 Author Share Posted September 24, 2014 yes this is very worrisome. if you do a new xlate does it assign the id's in the db ok? Yes also we have customers so i can't let the website too long in wrong language. I changed all ID's manually by SQL queries in phpmyadmin, but still same issue. Also i found out in most modules $params['cookie']->id_lang has the wrong language ID. but smarty {$lang_id} is good. Also when i remove all cookies or do private browsing with google incognito it's not working properly. Im sure its a bug somewhere but its a needle in a haystack. Anyway now my problem solved by a workaround, anway thank you for helping Link to comment Share on other sites More sharing options...
El Patron Posted September 24, 2014 Share Posted September 24, 2014 gosh that's so strange..sorry you had this issue and I could not be more help but sometimes we just need moral support. Link to comment Share on other sites More sharing options...
Recommended Posts