albundy11 Posted March 8, 2010 Share Posted March 8, 2010 Hi all !I would like to have two possibilities with languages and homepage logo like this :- when customer chooses language 1, the homepage displays homepage logo1- when customer chooses language 2, the homepage displays homepage logo2How can I do this ?Thank you for your next help !!Bye Link to comment Share on other sites More sharing options...
hamouda Posted April 1, 2010 Share Posted April 1, 2010 Hi albundy11,I had the same problem as you, and since prestashop does not give the possibility to give each language a logo you must do it manually.just make this change in the page header.tpl of your theme: and you rename the logos: logo_en.jpg for the English version, logo_fr.jpg for the French version, ... so ... 1 Link to comment Share on other sites More sharing options...
albundy11 Posted April 1, 2010 Author Share Posted April 1, 2010 Hi Hamouda,Thanks a lot.It seems working properly !Best regards. Link to comment Share on other sites More sharing options...
otithess Posted November 20, 2011 Share Posted November 20, 2011 Hi albundy11, I had the same problem as you, and since prestashop does not give the possibility to give each language a logo you must do it manually. just make this change in the page header.tpl of your theme: [b] [url="{$base_dir}"][img={$img_ps_dir}logo_{$lang_iso}.jpg][/url][/b] and you rename the logos: logo_en.jpg for the English version, logo_fr.jpg for the French version, ... so ... i need that code forum erased.... to change header.tpl . How can you tell me what you were writing before erase??? Link to comment Share on other sites More sharing options...
amnesiak Posted May 6, 2012 Share Posted May 6, 2012 (edited) bump, I need that code too I think the code was erased with a resaon. Edited May 6, 2012 by amnesiak (see edit history) Link to comment Share on other sites More sharing options...
Kasper ES Posted May 21, 2012 Share Posted May 21, 2012 My solution to this problem was to copy editorial.tpl to: my_theme/modules/editorial and overwrite/change: <img src="{$link->getMediaLink($image_path)}" to: <img src="{$img_dir}homepage_logo_{$lang_iso}.jpg" Then I placed the images in my themes image directory and renamed them: hompage_logo_en.jpg, homepage_logo_es.jpg etc. Link to comment Share on other sites More sharing options...
VNguyen Posted May 21, 2012 Share Posted May 21, 2012 Be careful when changing the logo name to logo_en.jpg or logo_fr.jpg. In all email templates under folder "mails", it refers the logo pat at $PS_DIR/img/logo.jpg. Link to comment Share on other sites More sharing options...
Kasper ES Posted May 21, 2012 Share Posted May 21, 2012 I realise I wasn’t answering directly to the subject. Actually I haven’t changed the sites logo, just the image in the editorial block that Prestashop for some reason calls Home Page Logo. I will keep in mind that the sites logo is also used for the email templates as I changed logo.jpg to logo.png for transparency. Anyway just wanted to comment that Prestashop already does change images referring to the current language with its “On Sale” image (Line 247 in product.tpl found in the theme directory). Link to comment Share on other sites More sharing options...
miriama Posted July 26, 2012 Share Posted July 26, 2012 Hi, I need that code too... is it possibile to know what was written before to erase the code? Thank you, Regards Miriam Link to comment Share on other sites More sharing options...
Recommended Posts