Post by mata » Sun Dec 06, 2009 4:37 am

Hi guys,
thirst of all let me thank to all of you who have created this shopping cart and this website. Excellent job!

I started to create my own template, I keep three colums on the main page, but each column has different background color (I create new classes in stylesheet.css derived from .box .middle class and changed reference to this class in tpl file for each module (for example - 3rd row in category.tpl <div id="category" class="middle_yellow"><?php echo $category; ?></div>). It works, but it is not the best way, I do not respect the choice of column side (right/left) from the admin menu. What is the variable which dedicate to which column a module will be placed ?

Newbie

Posts

Joined
Sun Dec 06, 2009 4:03 am

Post by Xsecrets » Sun Dec 06, 2009 5:02 am

there is no variable. It is stored in the db.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by Qphoria » Sun Dec 06, 2009 6:44 am

Not entirely the case... The values of all the settings are set in the index.php file to the $config object.
You can use:
$this->config->get('module_position');

where module is the name of the particular module.
(latest, bestseller, cart, information, etc)

The value is 'left' or 'right'

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mata » Sun Dec 06, 2009 2:19 pm

thanks, it is what I looked for :)

Newbie

Posts

Joined
Sun Dec 06, 2009 4:03 am
Who is online

Users browsing this forum: No registered users and 2 guests