| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Different Language Images | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#3
|
|||||||
|
|||||||
![]() I tried many different things, however never had it all lowercase.
This worked great! Thanks
__________________
Version 4.2.2 No add-ons |
|||||||
#4
|
|||||||
|
|||||||
![]() 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 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() I guess the same trick should work:
Code:
__________________
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 |
|||||||||
#6
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|