Forums / Templates, Stylesheets, Page Layout / display 3 columns of products on Pure Blue Template

display 3 columns of products on Pure Blue Template

Started by paul_1 on 11 Aug 2012, 7:05 AM · Views: 1,449

Results 1 to 12 of 12
11 Aug 2012, 7:05 AM
#1
paul_1 avatar

paul_1

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

display 3 columns of products on Pure Blue Template

On my homepage I have disabled the left and right columns and I now want to display 3 columns of products. If you look at the screen shot currently there are only 2 columns yet there seems to be plenty of space for them. The template is Pure Blue - http://www.zen-cart-power.net/pure-blue-template.html

Can anybody help me out please? I've searched through the settings and either I have overlooked something or the option is simply not there and needs to be hard coded in somewhere?

Thanks in advance

Attachment 10962

11 Aug 2012, 9:51 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: display 3 columns of products on Pure Blue Template

A link to that page would help a lot.

11 Aug 2012, 11:41 AM
#3
paul_1 avatar

paul_1

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

Re: display 3 columns of products on Pure Blue Template

Sorry, I didn't want the URL posting on here so I've done a fresh installation on another domain and I have the same problem - http://tobyflux.co.uk/zencart/

The only modifications I have done is to add the Pure Blue template, activate the side columns and then add this code to tpl_main_page.php

 if ($this_is_home_page == true) {
$flag_disable_right = true;
$flag_disable_left = true;
}

Other than that, it is out of the box

Please, if somebody could help me with this as I really like the template and the layout apart from I can't get the products to display across the full width of the page in three columns

The new URL again with test products/category is:

http://tobyflux.co.uk/zencart/

11 Aug 2012, 1:33 PM
#4
paul_1 avatar

paul_1

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

Re: display 3 columns of products on Pure Blue Template

Just thinking, if anybody needs the admin log in or FTP details to test anything I don't mind giving them out since this is only a test site, the live site is on another URL ;-)

11 Aug 2012, 2:15 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: display 3 columns of products on Pure Blue Template

The columns per orw on those elements are set in Admin - Configuration - Index Listing, at the bottom. Check those first. You may still have a problem if they are set to 3 though, as your mainWrapper width is set to 1000px and the background images of the boxes in the listings are 350 px wide. 3 X 350 = 1050 - too wide.

11 Aug 2012, 2:23 PM
#6
paul_1 avatar

paul_1

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

Re: display 3 columns of products on Pure Blue Template

Thanks Steve, but no joy I'm afraid.

Admin - Configuration - Index Listing is set to display 3 and I've just set the width to 100% and still the same - http://tobyflux.co.uk/zencart/

:(

11 Aug 2012, 4:58 PM
#7
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: display 3 columns of products on Pure Blue Template

I put this template in it's sister color (Pure Aqua) on one of my sister's sites:

promstobeaches com

I see that we have two product columns on homepage although her admin/configuration/index page is set for specials, featured and new to 3, 3, and 4. So there must be some coding in the template to set to just two homepage columns for new products, featured, specials?

I doubt that the normal width of the template can handle three products across on homepage, even with both columns off on homepage. Look at the image box and the text layout, side-by-side. I don't see it fitting.

Your full-width attempt currently looks horrible and you may have trouble with this template beyond its out-of-the-box setting.

Also, I also like full-width templates, but most are not literally full 100% width. Templates like Barebones, Mostly Grey and such are actually around 98% width, leaving a slight margin between your categories/side-columns and the monitor edge. It looks much better, than having the side columns jam up against the monitor sides.

Steve
prommart.com

11 Aug 2012, 5:06 PM
#8
paul_1 avatar

paul_1

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

Re: display 3 columns of products on Pure Blue Template

I set it to full width ONLY to test the width factor that stevesh mentioned, it wasn't designed to be a solution rather than a way to work out where and why it is only showing two columns :blink:

it will return to 1000px when I (or somebody) can work out why it pure_blue won't display the products in three columns

I can't believe I am the first to try this with one of the 'pure' templates, they have been around for long enough and I've used them before and this is the first problem I've ever encountered with them and had to ask for help

11 Aug 2012, 6:47 PM
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: display 3 columns of products on Pure Blue Template

Template designers drive me crazy sometimes. They seem to hack the code for no apparent reason.

Try opening includes/modules/pure_blue/new_products.php and changing line 17 from:

$number_of_columns = 2;

to:

$number_of_columns = 3;

11 Aug 2012, 11:12 PM
#10
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: display 3 columns of products on Pure Blue Template

Paul.:

I can't believe I am the first to try this with one of the 'pure' templates, they have been around for long enough and I've used them before and this is the first problem I've ever encountered with them and had to ask for help

Probably because those who use these templates think that they look good enough as is.

Steve
prommart.com

12 Aug 2012, 5:48 AM
#11
paul_1 avatar

paul_1

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

Re: display 3 columns of products on Pure Blue Template

Attachment 10968@SPH - what is that supposed to mean? That nobody should alter template code? 10/10 for the most stupid post I ever saw on this website!!! :D

@Steve, many many thanks. I would never have found that. 'Problem' solved :-) (crappy screenshot I know on the test installation I know, but just to demonstrate that your fix did indeed work, I'm impressed :-) )

12 Aug 2012, 7:06 AM
#12
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: display 3 columns of products on Pure Blue Template

You're pretty cheeky for having only 8 posts.

Of course people can alter templates, I do it myself all the time. But some templates are more difficult to alter than others.

And other templates look good enough as is, especially when the designer put some extra effort in to the template.

I might also add that, IMO, most who try to "improve" a template do not do a good job, including myself. Most will not do as good of a job as the designer. My pet peeve is that too many take a decent template, roll up their sleeves, and immediately begin to butcher it.

People can receive alot of help here on how to do this or that. That doesn't mean that the project looks good.

Anyway, good luck!

Steve
prommart.com