Post by spyder » Mon Nov 12, 2012 6:59 pm

Hello guys,

In header.tpl file i find this:

Code: Select all

echo $cart;
Where is this $cart defined? I want to define another variable, let's call it $cart2 and that to show the

Code: Select all

/template/module/cart2.tpl 
instead of

Code: Select all

/template/module/cart.tpl
Basically, i want to include 2 different carts in the template. Something like this (in header.tpl):

Code: Select all

if ($a == '2'){
echo $cart;
}else{
echo $cart2;
}
How can i do that?
Thank you!

Newbie

Posts

Joined
Fri Sep 14, 2012 7:56 pm

Post by spyder » Mon Nov 12, 2012 9:12 pm

No one?

Newbie

Posts

Joined
Fri Sep 14, 2012 7:56 pm

Post by grgr » Tue Nov 13, 2012 4:26 pm

It's a module so it sort of gets defined at the bottom of the ../controller/common/header.php file.

Code: Select all

		$this->children = array(
			'module/language',
			'module/currency',
			'module/cart'
		);

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by spyder » Fri Nov 16, 2012 10:30 pm

Thank you for the info!

I already fixed it using some "if"'s :)

Newbie

Posts

Joined
Fri Sep 14, 2012 7:56 pm
Who is online

Users browsing this forum: No registered users and 5 guests