Forums / Addon Language Packs / Different Header and Footer Graphics for English/Spanish Versions of Shopping Cart

Different Header and Footer Graphics for English/Spanish Versions of Shopping Cart

Locked

Started by interactivewest on 3 Mar 2009, 4:22 AM · Views: 3,393

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
3 Mar 2009, 4:22 AM
#1
interactivewest avatar

interactivewest

New Zenner

Join Date:
Dec 2008
Location:
Aspen, CO
Posts:
25
Plugin Contributions:
0

Different Header and Footer Graphics for English/Spanish Versions of Shopping Cart

ZenCart Version: 1.3.7
Spanish Pack Module Added (Version from April 2008)
Easy Populate Module Added
FCK Editor Added
Wish List Module Added

Please view: http://www.teamnhl.us/store

Then click on Spanish Language Icon

Then view: http://www/teamnhl.us/index-spanish.htm

Client would like to use Spanish Links and new graphic (coming soon) whenever Spanish version is chosen in ZenCart.

I already customized tpl_header.php and tpl_footer.php in templates area. There doesn't seem to be a way to customize in languages directory other than to change header.php and footer.php with a few text changes which won't accomplish having new spanish graphic appear when user goes to spanish version of cart.

Gene Fourney | InteractiveWest
PO Box 4272 | Aspen, CO 81612
Email: [email protected]

3 Mar 2009, 5:02 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Different Header and Footer Graphics for English/Spanish Versions of Shopping Cart

What is the logo filename in your spanish.php file? Setting that to a spanish-specific logo would show that logo instead when that language is selected.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Mar 2009, 10:31 AM
#3
crystalkoi avatar

crystalkoi

Zen Follower

Join Date:
Apr 2007
Posts:
181
Plugin Contributions:
0

Re: Different Header and Footer Graphics for English/Spanish Versions of Shopping Cart

Also, you could use php the check the session language, if you need to change other things besides the logo.

if ($_SESSION[language] == 'Spanish') {

 echo 'something';

}else{ // if you only run two languages

 echo 'something';

}

I am sure there are many other ways to do this.

Test a few and if you have problems come back. For text, you can always add to the language files too.

Regards,

CKD

3 Mar 2009, 2:53 PM
#4
tonibarcelona avatar

tonibarcelona

Inactive

Join Date:
Feb 2007
Location:
Barcelona
Posts:
200
Plugin Contributions:
0

Re: Different Header and Footer Graphics for English/Spanish Versions of Shopping Cart

just for your info:

the flag you're using on your site for "spanish" isn´t the spanish flag...

At "Pago y devoluciones" change "regresados" for "devueltos" and "regresar" for "devolver" and "recividos" for "recibidos".

Nice website!