IBICO Posted October 23, 2010 Share Posted October 23, 2010 Is it possible to add photos in the webshop and have them change according to what language you have when browsing the webshop?I know text is possible in homeeditor and products, but what about pictures? I have pictures/ads with text on them Link to comment Share on other sites More sharing options...
rocky Posted October 24, 2010 Share Posted October 24, 2010 Sure, PrestaShop does this with the "On sale" images. It uses the following code: <img src="{$img_dir}onsale_{$lang_iso}.gif" alt="{l s='On sale'}" class="on_sale_img"/> Then has onsale_en.gif, onsale_fr.gif and onsale_es.gif for English, French and Spanish. You can do a similiar thing to add language-specific images. Link to comment Share on other sites More sharing options...
IBICO Posted October 24, 2010 Author Share Posted October 24, 2010 ooh.. sweet. Why is this not implemented in the webshop itself so you could upload pictures after language in Home text editor and other places instead of having to add custom codes?.. would be a LOT better for those not so skillful in coding. Link to comment Share on other sites More sharing options...
IBICO Posted October 24, 2010 Author Share Posted October 24, 2010 I have this code though.. I got both text and link to a picture. Guess I need to put somewhere that is English and is also English, while and are French and so on.http://www.augdal.net/modules/uhufeatured/images/bayonetta_010410.jpghttp://www.augdal.net/modules/uhufeatured/images/bayonetta_010410t.jpghttp://www.augdal.net/product.php?id_product=244 <titleGoToURI>http://www.augdal.net/product.php?id_product=244</titleGoToURI> http://www.augdal.net/product.php?id_product=244http://www.augdal.net/product.php?id_product=244http://www.augdal.net/product.php?id_product=244 <title>G&G;G2010</title>Scope version in beautiful TAN. Solid piece of engineering made of Aluminum/Nylon/Fiber/Zinc/Plastic/Stainless WatchwatchIcon Link to comment Share on other sites More sharing options...
rocky Posted October 24, 2010 Share Posted October 24, 2010 I'm not familiar with the uhufeatured module, so it is hard for me to help. Link to comment Share on other sites More sharing options...
IBICO Posted October 24, 2010 Author Share Posted October 24, 2010 Well. The picture changed when choosing French, but not Italian and German.. So why is that? Is this theme code related? Link to comment Share on other sites More sharing options...
rocky Posted October 24, 2010 Share Posted October 24, 2010 Did you create images for those languages? For example, onsale_it.gif and onsale_de.gif. You must have an image for every language iso code. Link to comment Share on other sites More sharing options...
IBICO Posted October 24, 2010 Author Share Posted October 24, 2010 Yes.. one for each country. Link to comment Share on other sites More sharing options...
rocky Posted October 25, 2010 Share Posted October 25, 2010 I'll need a link to your website to check what's going wrong. 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