Post by sash_007 » Mon May 03, 2010 2:15 pm

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?

New member

Posts

Joined
Wed Apr 28, 2010 10:33 am

Post by fili » Tue May 04, 2010 10:42 pm

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 ;)

User avatar
New member

Posts

Joined
Tue May 04, 2010 10:35 pm

Post by buckmajor » Wed May 05, 2010 10:12 am

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

http://www.dmaireroa.com


New member

Posts

Joined
Tue May 04, 2010 11:29 am
Location - Brisbane

Post by buckmajor » Wed May 05, 2010 10:19 am

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 :)

http://www.dmaireroa.com


New member

Posts

Joined
Tue May 04, 2010 11:29 am
Location - Brisbane

Post by Purebeads » Wed May 05, 2010 12:08 pm

I did that -- I set all modules to the left column, but it didn't make the right column disappear.

Active Member

Posts

Joined
Fri Apr 30, 2010 12:07 pm

Post by buckmajor » Wed May 05, 2010 12:24 pm

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

http://www.dmaireroa.com


New member

Posts

Joined
Tue May 04, 2010 11:29 am
Location - Brisbane

Post by fili » Thu May 06, 2010 6:45 pm

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 :)

User avatar
New member

Posts

Joined
Tue May 04, 2010 10:35 pm

Post by LubomirHerko » Wed Aug 18, 2010 4:07 am

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.

User avatar
Newbie

Posts

Joined
Wed Aug 18, 2010 4:02 am
Location - Krupina, Slovakia

Post by heriwahyudianto » Mon Nov 01, 2010 12:13 pm

at 1st page i need 3 column. but on detail product, left column disapear. how?


Posts

Joined
Mon Nov 01, 2010 10:32 am

Post by k23m » Sun Mar 20, 2011 11:40 am

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!!

Newbie

Posts

Joined
Fri Apr 11, 2008 4:13 am
Who is online

Users browsing this forum: No registered users and 18 guests