Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How-to insert "sidebox content" in the header ?

How-to insert "sidebox content" in the header ?

Locked

Views: 1,192

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Aug 2006, 11:24 AM
#1
vickk avatar

vickk

New Zenner

Join Date:
Aug 2006
Posts:
3
Plugin Contributions:
0

How-to insert "sidebox content" in the header ?

Hello everybody.

I am making a new template.

I want to show all languages available in my header.
I know I have to edit my includes/templates/NEW_TEMP/common/tpl_header.php

I tryed a
require('includes/modules/sideboxes/languages.php');
or a
require('includes/templates/NEW_TEMP/sideboxes/languages.php');

But both crash.
For inc/module : templates/NEW_TEMP/ : $column_box_default is not defined.
For inc/templates/ : $lng->catalog_languages seems to be null.

How can I have the languages in the header ? Have I to write a new module ?
Thanks.

3 Aug 2006, 2:12 PM
#2
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: How-to insert "sidebox content" in the header ?

I achieved this with the Featured products on a template I did, but I probably didn't do it the way someone with more experience coding would...

What I did is moved the entire code from the sidebox right (for the featured products) into the header and then put only the feature product box in the right column.

It worked - yes - but it's probably not the RIGHT way to make it work.

3 Aug 2006, 2:55 PM
#3
vickk avatar

vickk

New Zenner

Join Date:
Aug 2006
Posts:
3
Plugin Contributions:
0

Re: How-to insert "sidebox content" in the header ?

Thank you TinaS.

In fact, yes. Moving the entire code from the right-sidebox was a good idea ! But I have to show the 2 sideboxes for this shop...

I wonder if I will rewrite my header in order to include the languages, or if I will use a "hack", overriding the "single column" mode. (Like you made for the right-column...)

3 Aug 2006, 3:10 PM
#4
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: How-to insert "sidebox content" in the header ?

This post should help you: Language/Currency Links in Header

3 Aug 2006, 3:18 PM
#5
vickk avatar

vickk

New Zenner

Join Date:
Aug 2006
Posts:
3
Plugin Contributions:
0

Re: How-to insert "sidebox content" in the header ?

Oh YES !!!
Thank you ideasgirl !
And thanks to bunyip ! :thumbsup: