Post by lalapo » Sat Nov 12, 2011 7:30 pm

is it posible have a php in home.tpl?
if have column-left and column-right; content class is grid_6
if have column-left or column-right; content class is grid_9
if haven't column-left and column-right; content class is grid is grid_12
pls help

Newbie

Posts

Joined
Sat Sep 10, 2011 6:34 pm

Post by SXGuy » Sun Nov 13, 2011 4:43 am

have no idea what you are talking about.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by wernerrenrew » Sun Nov 13, 2011 5:36 am

Hi,

It sounds like you have not done something like templates for each category.
So i gues you just don't understand opencarts template system.

home.tpl
is used for the route common/home
this is your homepage only

All types of pages have their own .tpl in there you will find this div you are looking for

Code: Select all

<div id="content">
Open these files and also home.tpl and study them.
catalog/view/theme/your_theme/template/product/product.tpl
catalog/view/theme/your_theme/template/product/category.tpl

Regards Werner

User avatar
Active Member

Posts

Joined
Thu Oct 27, 2011 9:48 pm
Location - Netherlands
Who is online

Users browsing this forum: No registered users and 16 guests