ALMAJ Posted March 17, 2014 Share Posted March 17, 2014 (edited) In the Front Office there is no Flag icon on languages in the new Prestashop 1.6 how to enable this feature that was on all previous prestashop versions ? Regards Edited March 17, 2014 by majority (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2014 Share Posted March 17, 2014 In the Front Office there is no Flag icon on languages in the new Prestashop 1.6 how to enable this feature that was on all previous prestashop versions ? Regards hello any chance to see it live? it isnt, definitely, default prestashop behaviour Link to comment Share on other sites More sharing options...
dioniz Posted March 17, 2014 Share Posted March 17, 2014 You can get flag icons here: http://www.famfamfam.com/lab/icons/flags/ and you can upload it in Localization > languages Link to comment Share on other sites More sharing options...
ALMAJ Posted March 17, 2014 Author Share Posted March 17, 2014 (edited) hello any chance to see it live? it isnt, definitely, default prestashop behaviour Sure send me a PM with your ip "it isnt, definitely, default prestashop behaviour" you mean that is the default behavior of the new prestashop 1.6 not having an icon flag on languages? if so how to hack it to have icons based on ISO langs? regards Edited March 17, 2014 by majority (see edit history) Link to comment Share on other sites More sharing options...
ALMAJ Posted March 17, 2014 Author Share Posted March 17, 2014 You can get flag icons here: http://www.famfamfam.com/lab/icons/flags/ and you can upload it in Localization > languages done it, but I think the upload in Localization > languages is only for showing the flags icons on Back Office not in Front Office Link to comment Share on other sites More sharing options...
dioniz Posted March 17, 2014 Share Posted March 17, 2014 It was for FO in previous prestashop versions. I'm not sure about 1.6 Link to comment Share on other sites More sharing options...
ALMAJ Posted March 18, 2014 Author Share Posted March 18, 2014 It was for FO in previous prestashop versions. I'm not sure about 1.6 Yes it was and it is for FO and BO but in the new prestashop 1.6 theme there is no icon flag on FO, only your country text is displayed, i now must find a way to display an icon instead of text. Prestashop 1.6 new responsive theme design mobile first, is using Font Awesome for the icons, this means removing all raster icons, i understand that the web's future is going to be vector instead of raster but for now the vector based Font Awesome icons are monochrome (only one color) we cannot do a lot with that... regards Link to comment Share on other sites More sharing options...
Randaal Posted April 14, 2014 Share Posted April 14, 2014 Well how about adding a vector flag to the FTP and setting it as a language display item? Then you wont need to worry about monochrome font awesome anymore. I am not a coder so I don't know the way to do it but it should be ok for someone who knows what should be changed Link to comment Share on other sites More sharing options...
zimmer-media Posted January 3, 2015 Share Posted January 3, 2015 hello,if the theme for this is still relevant - I found the solution http://www.themebooster.com/language-flags: Open blocklanguages.tpl located inside your-online-installation/themes/your-theme/modules/blocklanguages/ Note: if folder called blocklanguages does not exist in your theme directory, copy this folder located inside your-online-installation/themes/default-bootstrap/modules/blocklanguages/ and paste inside your-online-installation/themes/your-theme/modules/ Use your favourite Text editor and open blocklanguages.tpl Change twice (row 31 and 46) {$language.name|regex_replace:"/\s.*$/":""} with <img alt="{$language.iso_code}" height="11" span="" src="{$img_lang_dir}{$language.id_lang}.jpg" width="16" /> Save and overwrite I replaced the code as follows: <span><img alt="{$language.iso_code}" height="11" span="" src="{$img_lang_dir}{$language.id_lang}.jpg" width="16" /> {$language.name|regex_replace:"/\s.*$/":""}</span> 5 Link to comment Share on other sites More sharing options...
Recommended Posts