Jump to content

Picture changing after language?`


Recommended Posts

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

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

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

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.jpg
http://www.augdal.net/modules/uhufeatured/images/bayonetta_010410t.jpg
http://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=244
http://www.augdal.net/product.php?id_product=244
http://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


Watch
watchIcon


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...