Page 1 of 1

How can i have 2 columns instead of 3

Posted: Mon May 03, 2010 2:15 pm
by sash_007
Hello friends,

What i should edit to have 2 columns one left and one main column in http://www.webdesigncut.com/storei tried editing the left and right tpl files but i am making a mess i want the left column contents just below the right col?

Re: How can i have 2 columns instead of 3

Posted: Tue May 04, 2010 10:42 pm
by fili
the tricky way is :::: just delete all code in column_right.tpl in folder \catalog\view\theme\default\template\common

and change all your right column module to the left one (Set all module position to the left column).

it's work for me ;)

Re: How can i have 2 columns instead of 3

Posted: Wed May 05, 2010 10:12 am
by buckmajor
fili wrote:the tricky way is :::: just delete all code in column_right.tpl in folder \catalog\view\theme\default\template\common

and change all your right column module to the left one (Set all module position to the left column).

it's work for me ;)
Hi there

I am in the same boat of creating a 2 column page, and was looking at the left column and right column file. However, both of them have the same code:

Code: Select all

  <?php foreach ($modules as $module) { ?>
  <?php echo ${$module['code']}; ?>
  <?php } ?>
So how do you set the right column modules to the left column?

Thanks

Re: How can i have 2 columns instead of 3

Posted: Wed May 05, 2010 10:19 am
by buckmajor
WAAHOO!! I got it going.

To explain it, you have to go into your Admin settings > Extensions > Modules and edit to set the position to the left.

Thanks heaps
CHEERS :)

Re: How can i have 2 columns instead of 3

Posted: Wed May 05, 2010 12:08 pm
by Purebeads
I did that -- I set all modules to the left column, but it didn't make the right column disappear.

Re: How can i have 2 columns instead of 3

Posted: Wed May 05, 2010 12:24 pm
by buckmajor
Purebeads wrote:I did that -- I set all modules to the left column, but it didn't make the right column disappear.
My friend, you have to delete the code in the right column file as fili already mentioned:
the tricky way is :::: just delete all code in column_right.tpl in folder \catalog\view\theme\default\template\common

and change all your right column module to the left one (Set all module position to the left column).
That should work. Unless someone has a more appropriate way??

P.S If your using a custom theme like me, then the file should in column_right.tpl in folder \catalog\view\theme\myTheme\template\common and not in the default folder

Re: How can i have 2 columns instead of 3

Posted: Thu May 06, 2010 6:45 pm
by fili
if u like it, you can use this template,,
http://www.opencart.com/index.php?route ... _type_id=1

2 column OpenCart template, but sorry not too perfect :)

Re: How can i have 2 columns instead of 3

Posted: Wed Aug 18, 2010 4:07 am
by LubomirHerko
Create 2 columns from Default template is very easy one:

In theme/yourThemeFromDefault/template/common/home.tpl in very first line comment out line which calls for column_right variable:

Code: Select all

<?php #echo $column_right; ?>
After this, your right column should dissapear, but there still will be placeholder left, that's because the #content div has right-margin set to 190px. You need to change this in main css file. Find rules for #content and delete line:

Code: Select all

margin-right: 190px;
And you should be OK and have 2 column layout.

Re: How can i have 2 columns instead of 3

Posted: Mon Nov 01, 2010 12:13 pm
by heriwahyudianto
at 1st page i need 3 column. but on detail product, left column disapear. how?

Re: How can i have 2 columns instead of 3

Posted: Sun Mar 20, 2011 11:40 am
by k23m
LubomirHerko wrote:Create 2 columns from Default template is very easy one:

In theme/yourThemeFromDefault/template/common/home.tpl in very first line comment out line which calls for column_right variable:

Code: Select all

<?php #echo $column_right; ?>
After this, your right column should dissapear, but there still will be placeholder left, that's because the #content div has right-margin set to 190px. You need to change this in main css file. Find rules for #content and delete line:

Code: Select all

margin-right: 190px;
And you should be OK and have 2 column layout.
PERFECT! Thanks!!