Post by Kropay » Sun Jan 16, 2011 11:10 am

Hi,

First, thanks for this amazing free script!

What i need is to delete the right menu to extend the main page. To show not 4 colluns but 5.

See:

http://www.Kropay.com/index.php?route=p ... y&path=259

The right menu is deleted and now i want to cover that space with more one collun to get 5 colluns to that space.

How can i do that?
Last edited by i2Paq on Sun Jan 16, 2011 7:27 pm, edited 1 time in total.
Reason: Topic moved

Newbie

Posts

Joined
Sun Jan 16, 2011 11:06 am

Post by Chones » Sun Jan 16, 2011 7:00 pm

In the stylesheet set find

Code: Select all

#column_right {
	float: right;
	width: 180px;
	margin-left: 10px;
	clear: right;
}
#content {
	margin-left: 190px;
	margin-right: 190px;
	margin-bottom: 10px;
}
Change it to

Code: Select all

#column_right {
	display: none;
}
#content {
	margin-left: 190px;
	margin-right: 0;
	margin-bottom: 10px;
}
Then in your category template and your latest_home template find the lines

Code: Select all

 <table class="list">
      <?php for ($i = 0; $i < sizeof($products); $i = $i + 4) { ?>
      <tr>
        <?php for ($j = $i; $j < ($i + 4); $j++) { ?>
        <td width="25%"><?php if (isset($products[$j])) { ?>
Change it to

Code: Select all

 <table class="list">
      <?php for ($i = 0; $i < sizeof($products); $i = $i + 5) { ?>
      <tr>
        <?php for ($j = $i; $j < ($i + 5); $j++) { ?>
        <td width="20%"><?php if (isset($products[$j])) { ?>

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London

Post by Kropay » Sun Jan 16, 2011 9:44 pm

Thank you! The forum must add a thanks button! :P

But i havent edited the last thing you said because its perfect with just the first step... Np right?

Newbie

Posts

Joined
Sun Jan 16, 2011 11:06 am

Post by Chones » Sun Jan 16, 2011 9:57 pm

Thank you too.

The last bit will give you a row of 5 products instead of 4, which is what I thought you wanted?

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London

Post by andris » Mon Jan 17, 2011 7:22 pm

hiding tags with css display: none; is not really good thing to do.. you could simply remove <?php echo $column_right; ?> from yout template .tpl files where necessary :)

New member

Posts

Joined
Fri Nov 19, 2010 4:34 am

Post by Chones » Tue Jan 18, 2011 2:32 am

Yes, usually I never use display: none;

But OpenCart is different - you would need to edit every template file. With this method you only make the change in the styletsheet. This is the best way to do a template - edit the minimum number of files possible.

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London
Who is online

Users browsing this forum: No registered users and 25 guests