Hello
I found this and installed as directed
Column Layout / Grid Layout for Products Listing (Add On Module for Zen Cart v1.3.8)
NOTE: This module is updated for Zen Cart 1.3.8, therefore for older version of Zen Cart (prior to v1.3.5)
you must still use the earlier version of the module. This module and instructions are exclusive to new version of Zen Cart.
This will work both for upgrades as well as for fresh installs.
IF YOU ARE UPGRADING, you do not need to run the SQL file if your site already has the 2 options for configuring the
column-layout mod in the Admin->Configuration->Product Listing screen.
QUICK INSTALL:
(1) Copy the product_listing.php module file into the includes/modules/YOURTEMPLATE folder in your shop;
(2) Copy the template file to your custom templates folder,
(3) and run the SQL file.
More details below...
Description:
The default listing of products as per the Zen Cart code is - one product per row (we call it row-wise).
Very often, it is visually more appealing and useful to have the products listed in a Grid / Matrix or Tabular Style i.e.
multiple rows and within each row multiple columns, thus forming a Grid or Tabular layout. This module has been developed to achieve this goal.
How this add-on module is implemented:
In the instructions below, I assume that your Zen Cart home directory - where the root of the Zen Cart files is,
represented by symbol ZEN_CART_HOME_DIR, and YOUR_TEMPLATE is to be replaced by the name of your customized template.
Three things are to be done -
(1) The module overrides just one file in the system - the file modified is ZEN_CART_HOME_DIR/includes/modules/YOUR_TEMPLATE/product_listing.php
(2) The template overrides just one file in the system - the file modified is ZEN_CART_HOME_DIR/includes/templates/YOUR_TEMPLATE/templates/tpl_modules_product_listing.php
(3) The configuration table in the database is also modified to allow for choice and num of columns and therefore a couple of rows are added.
See details below.
Detailed Instructions:
==== BACKUP your files and database before making any changes ==========
STEP 1. Modification of Code
Updated code files are included - so the task is simple.
- Upload the new product_listing.php to ZEN_CART_HOME_DIR/includes/modules/YOURTEMPLATE/product_listing.php
- Upload the new tpl_modules_product_listing.php to:
ZEN_CART_HOME_DIR/includes/templates/YOURTEMPLATE/templates/tpl_modules_product_listing.php
STEP 2. Changing the Database
Run the following SQL commands into your database.
The easiest way is to open Admin->Tools->Install SQL Patch and paste them in the box and click Send.
(These same commands are in the enclosed column_layout_grid.sql file, for convenience.)
INSERT INTO configuration (configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order,
last_modified, date_added, use_function, set_function)
VALUES ('Product Listing - Layout Style', 'PRODUCT_LISTING_LAYOUT_STYLE', 'rows',
'Select the layout style:<br />Each product can be listed in its own row (rows option)
or products can be listed in multiple columns per row (columns option)', '8', '40', NULL,
now(), NULL, 'zen_cfg_select_option(array('rows', 'columns'),');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order,
last_modified, date_added, use_function, set_function)
VALUES ('Product Listing - Columns Per Row', 'PRODUCT_LISTING_COLUMNS_PER_ROW', '3',
'Select the number of columns of products to show in each row in the product listing.
The default setting is 3.', '8', '41', NULL, now(), NULL, NULL);
STEP 3. Configuration
Open up the admin section of your running cart in your browser
Go to Admin -> Configuration -> Product Listing.
Set the following settings:
A. Product Listing - Layout Style
Set the type of layout you want to use. By default, the current Zen Cart layout will be used.
It is called "rows". If you want to use the column and row layout, choose "columns".
B. Product Listing - Columns Per Row
If you choose to use the column layout, type in the number of columns you want to show on each row.
The default is 3 columns.
Good Luck!
--
Rajeev Tandon
History:
(i) This module is a modified version of Product Column Listing v 1.0 originally submitted
by Eric Stamper which was compatible with Zen Cart ver. 1.1.4
(ii) Upgraded by Rajeev Tandon as of August 3, 2004 Zen cart version 1.2.0d email: guru AT newindia.com
(iii)Upgraded for v1.2.5-compatibility May 21, 2005
(iv) Upgraded for v1.3.0-compatibility Dec 1, 2005 and tweaked again 04/04/2006
(v) Upgraded for v1.3.0.2-compatibility July 4, 2006
(vi) Upgraded for v1.3.5-compatibility Sept 4, 2006
Addendum: fixed bug for duplicate descriptions in "rows" mode.
(vii)Upgraded for v1.3.6-compatibility Oct 25, 2006. Works for 1.3.5 and 1.3.6.
(iix)Upgraded for v1.3.8-compatibility Dec 28, 2007 by stevefriedman71
**
the problem is that I only see 1 column, I have changed teh number of column as directed above, but it dosen´t matter wish number I set, it always display the same, only 1 column
as shown
first picture the way is displayed right now,, somthing is wrong becouse I have
the colum option on, on product display
and I have the number 4 as column number
with 3 dosen´t work too
second picture the way it should be displayed
thanks in advance**