I have a bilingual store (English/French) I am working on, bought a template on Theme Forest, and now I would like to change the "sale" image in french:
http://cartamagicastore.com/OpenC/product/special
So I went ahead and created a .product-sale-fr class, a french image, tested it and it looks fine.
Now I just don't now how to implement it in my templates. I know I need to do something like: if English, display this, if not, display that. I just don't know how to achieve this. The exact code in the template file is this:
Code: Select all
<?php if ($product['thumb']) { ?>
<div class="image"><?php if ($product['special']) { ?><div class="product-sale"></div><?php } ?><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
<?php } ?>