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

Change Header with Language

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-09-2009, 05:24 AM
 
info@mea.li info@mea.li is offline
 

Member
  
Join Date: Apr 2009
Location: Switzerland
Posts: 13
 

Default Change Header with Language

Hi Guys

My online store is multilingual (german/english). There is the "Select Language" chooser right in the top of the header.
I want that also my header graphic changes when i change the language. How can i solve this?
That means i want to show header XY for german verison and i want to show header XY for english version.

Thanks a lot for your help.

Regards
Manuel
__________________
X-Cart Gold 4.2.1

Add-on: X-Affiliate
Add-on: X-FancyCategories
Add-on: X-SpecialOffers
Add-on: X-Survey
Add-on: X-AOM (Advanced Order Management)

Newest Added products list by BCS Engineering
X-Cart Multiple Manufacturers v4.x by X-CartMods
Reply With Quote
  #2  
Old 06-09-2009, 09:15 PM
 
NelsonLaRocca NelsonLaRocca is offline
 

Member
  
Join Date: Nov 2007
Posts: 29
 

Default Re: Change Header with Language

I took a little time to do that and filled the top from the code itself instead of the css background. The matter is that the background is repeated if used within the table tag itself and NOT if used from the css file.
__________________
Nelson La Rocca
B4B Corp.

using:
X-Cart 4.7.4 Platinum
Reply With Quote
  #3  
Old 06-09-2009, 11:55 PM
 
info@mea.li info@mea.li is offline
 

Member
  
Join Date: Apr 2009
Location: Switzerland
Posts: 13
 

Default Re: Change Header with Language

Hi Nelson

Thanks for your reply. Since i'm newbie here and not so familiar yet with this i would be grateful if you could explain it a lil bit how to solve this. Because i don't really know how to start now with your reply.

Thanks
Manuel
__________________
X-Cart Gold 4.2.1

Add-on: X-Affiliate
Add-on: X-FancyCategories
Add-on: X-SpecialOffers
Add-on: X-Survey
Add-on: X-AOM (Advanced Order Management)

Newest Added products list by BCS Engineering
X-Cart Multiple Manufacturers v4.x by X-CartMods
Reply With Quote
  #4  
Old 06-10-2009, 12:26 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Change Header with Language

See if the if statements in this thread work for you...
http://forum.x-cart.com/showthread.php?t=20598
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #5  
Old 06-11-2009, 12:08 AM
 
info@mea.li info@mea.li is offline
 

Member
  
Join Date: Apr 2009
Location: Switzerland
Posts: 13
 

Default Re: Change Header with Language

hi pauldodman

thanks a lot for your help, that was the right impulse to solve the problem.

i did now change head.tpl and main.css ...

head.tpl before:

<div class="line1">
<div class="logo">

head.tpl now:

<div class="line1">
{if $store_language eq "DE"}<div class="logo">{/if}
{if $store_language eq "US"}<div class="logo3">{/if}


main.css before:

#header .line1 .logo {
background: transparent url(images/custom/top_image1.jpg) no-repeat left top;
height: 192px;
position: relative;
}


main.css now

#header .line1 .logo {
background: transparent url(images/custom/top_image1.jpg) no-repeat left top;
height: 192px;
position: relative;
}
#header .line1 .logo3 {
background: transparent url(images/custom/top_image2.jpg) no-repeat left top;
height: 192px;
position: relative;
}


thanks a lot, it's working now like this...

regards
manuel
__________________
X-Cart Gold 4.2.1

Add-on: X-Affiliate
Add-on: X-FancyCategories
Add-on: X-SpecialOffers
Add-on: X-Survey
Add-on: X-AOM (Advanced Order Management)

Newest Added products list by BCS Engineering
X-Cart Multiple Manufacturers v4.x by X-CartMods
Reply With Quote
  #6  
Old 06-11-2009, 12:11 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Change Header with Language

Good to hear - and thanks for posting an update so other users may benefit too
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
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 03:00 PM.

   

 
X-Cart forums © 2001-2020