Bors Posted April 19, 2011 Share Posted April 19, 2011 Has anyone managed to make it so that the blockadvertising that comes default with Prestashop is language sensitive?I mean, I have an image with English text on it. I'd like when visitors change their language to French, another image (containing the French ad) to be displayed. Can anyone help? I think it's something a lot of users would appreciate. Link to comment Share on other sites More sharing options...
shokinro Posted April 20, 2011 Share Posted April 20, 2011 check this thread, there is solution for header logo.you can use the same solution for advertising images.http://www.prestashop.com/forums/viewthread/101092 Link to comment Share on other sites More sharing options...
Bors Posted April 20, 2011 Author Share Posted April 20, 2011 Hey, great thanks. From the looks of it it should do it.Would be really nice if in future versions that could become an actual CMS part of the editorial and ads modules. Link to comment Share on other sites More sharing options...
shokinro Posted April 20, 2011 Share Posted April 20, 2011 Yes, I think your request is very reasonable, hope PrestaShop development team will consider this new feature. Link to comment Share on other sites More sharing options...
lettersets Posted April 5, 2012 Share Posted April 5, 2012 Here's the solution specifically for the Advertising module: in modules/blockadvertising/blockadvertising.tpl change: img src="{$image}" to img src="{$img_ps_dir}advertising_custom_{$lang_iso}.jpg" in the /img folder upload different images for each language and name them using the 2 letters iso code from each language you are using, for example: advertising_custom_en.jpg advertising_custom_nl.jpg advertising_custom_fr.jpg Link to comment Share on other sites More sharing options...
lettersets Posted April 5, 2012 Share Posted April 5, 2012 And if you want to change the language of the title of the image, you can change the alt and title it in the .tpl file to: alt="{l s='Your text here' mod='blockadvertising'}" and translate it in the Back Office (Translations>Modules) Link to comment Share on other sites More sharing options...
Raitis Posted October 9, 2012 Share Posted October 9, 2012 I want to change - href="{$adv_link}" to link for language sensetive.... Link to comment Share on other sites More sharing options...
Recommended Posts