Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Different Language Images

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-14-2010, 05:17 PM
 
newage newage is offline
 

Member
  
Join Date: Jul 2009
Posts: 29
 

Default 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
__________________
Version 4.2.2
No add-ons
Reply With Quote
  #2  
Old 12-15-2010, 04:51 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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}
---
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 12-15-2010, 11:06 AM
 
newage newage is offline
 

Member
  
Join Date: Jul 2009
Posts: 29
 

Default Re: Different Language Images

I tried many different things, however never had it all lowercase.

This worked great!

Thanks
__________________
Version 4.2.2
No add-ons
Reply With Quote
  #4  
Old 12-15-2010, 11:35 AM
 
newage newage is offline
 

Member
  
Join Date: Jul 2009
Posts: 29
 

Default 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
__________________
Version 4.2.2
No add-ons
Reply With Quote
  #5  
Old 12-15-2010, 10:25 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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>
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #6  
Old 12-16-2010, 04:05 AM
 
newage newage is offline
 

Member
  
Join Date: Jul 2009
Posts: 29
 

Default 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?
__________________
Version 4.2.2
No add-ons
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:45 AM.

   

 
X-Cart forums © 2001-2020