X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Different Language Images (https://forum.x-cart.com/showthread.php?t=57065)

newage 12-14-2010 05:17 PM

Different Language Images
 
I am working with version 4.4 and I have English and French languages set up and working. I need to have the images different (Main image, company logo, etc.) on the French site.

I have it working on an older version using if statements however I cannot get it to work with version 4.4.

This is what I have

{if $store_language eq "EN"}
<img src="{$AltImagesDir}/fashion_mosaic/welcome.jpg" class="welcome" alt="" />
{else}
<img src="{$AltImagesDir}/fashion_mosaic/welcomeFR.jpg" class="welcome" alt="" />
{/if}


This does not work on version 4.4. I am editing the welcome.tpl.

Any help with this would be greatly appreciated.

Thanks

Shane

qualiteam 12-15-2010 04:51 AM

Re: Different Language Images
 
Try this code:
---
{if $store_language eq "en"}
<img src="{$AltImagesDir}/fashion_mosaic/welcome.jpg" class="welcome" alt="" />
{else}
<img src="{$AltImagesDir}/fashion_mosaic/welcomeFR.jpg" class="welcome" alt="" />
{/if}
---

newage 12-15-2010 11:06 AM

Re: Different Language Images
 
I tried many different things, however never had it all lowercase.

This worked great!

Thanks

newage 12-15-2010 11:35 AM

Re: Different Language Images
 
I got this working for the images I have in the welcome.tpl However I need this for the main company logo as well.

In the Head.tpl I see the following code:

<a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/xlogo.gif" alt="" /></a>


How do I get this to display a different logo if it is French??? I know I can change the image name in the CSS stylesheet, however I dont know how to do it for a different logo?

Thanks

Shane

qualiteam 12-15-2010 10:25 PM

Re: Different Language Images
 
I guess the same trick should work:
Code:

<a href="{$catalogs.customer}/home.php">
{if $store_language eq "en"}
  <img src="{$ImagesDir}/xlogo.gif" alt="" />
{else}
  <img src="{$ImagesDir}/xlogoFR.gif" alt="" />
{/if}
</a>


newage 12-16-2010 04:05 AM

Re: Different Language Images
 
This code did not work. I did try this already.

I dont understand where this xlogo.gif is known that the actual logo name is company_logo.jpg?

Then I assume I should name the french logo company_logoFR.jpg.

I am using .jpg and not .gif?

Any other suggestions?


All times are GMT -8. The time now is 12:36 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.