Post by jameync » Mon Jun 14, 2010 11:56 pm

is there a way to set the number of products being displayed vertically? for instance right now on the home page 3 products are being displayed for each row of products. is there a way to change this?

thank you.

Newbie

Posts

Joined
Tue May 18, 2010 5:34 am

Post by JAY6390 » Mon Jun 14, 2010 11:58 pm

This would really need to be a design change, and you can't really do it automatically, you would need to code it so that X products per row were displayed, then for the amount of rows you want you just add that many products til it fills those rows

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Qphoria » Tue Jun 15, 2010 12:14 am

Well...

First off, by default, 4 are displayed "horizontally". Not 3 vertically.
Secondly, it is very simple to change in your theme

1. EDIT THE FOLLOWING FILES:
catalog/view/theme/default/template/module/*_home.tpl
catalog/view/theme/default/template/product/*.tpl

2. FIND ALL INSTANCES OF:

Code: Select all

$i + 4
3. REPLACE ALL 4's with how many you want to go across

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by jameync » Tue Jun 15, 2010 2:25 am

thank you Qphoria. that was it

Newbie

Posts

Joined
Tue May 18, 2010 5:34 am
Who is online

Users browsing this forum: No registered users and 51 guests