sanp Posted February 21, 2010 Share Posted February 21, 2010 Manufacturer description does not translate when you switch the language.I entered the translation in BO and I confirmed that entry in MySQL database.Somehow you can only show manufacturer description in the default language.Has anyone found a solution for this issue? Link to comment Share on other sites More sharing options...
sanp Posted February 22, 2010 Author Share Posted February 22, 2010 Sorry I was not clear. This issue happens only on blockmanufacturer.php not on manufacturer.php. Link to comment Share on other sites More sharing options...
sanp Posted February 22, 2010 Author Share Posted February 22, 2010 I'm guessing that it's because the manufacturer object is not passed into blockmanufacturer.tpl.It would be great if someone can give me advice. I don't see "id_lang" thing anywhere in blockmanufacturer.php either. Link to comment Share on other sites More sharing options...
rocky Posted February 24, 2010 Share Posted February 24, 2010 I just tried to add the manufacturer description to the manufacturer's block and can reproduce your problem of only the default language being displayed. This is because the call that gets the manufacturers is missing the id_lang parameter. I guess the Prestashop team overlooked this because they aren't using the description in the manufacturer block. To fix it, you should change line 28 of modules/blockmanufacturer/blockmanufacturer.php from: global $smarty, $link; to: global $smarty, $link, $cookie; and line 31 from: 'manufacturers' => Manufacturer::getManufacturers(), to: 'manufacturers' => Manufacturer::getManufacturers(false, $cookie->id_lang), Link to comment Share on other sites More sharing options...
sanp Posted February 24, 2010 Author Share Posted February 24, 2010 THANK YOU SO VERY MUCH!!It works like a charm!!I did not realize that $cookie was missing...Arigato from Tokyo. Link to comment Share on other sites More sharing options...
begnogio Posted May 21, 2011 Share Posted May 21, 2011 Rocky, thank you from italy, i've resolved in prestashop 1.4. 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