Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Adding more columns to the product listing page

Adding more columns to the product listing page

Locked

Started by thunderbird2004 on 22 Mar 2008, 11:01 PM · Views: 1,630

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
22 Mar 2008, 11:01 PM
#1
thunderbird2004 avatar

thunderbird2004

New Zenner

Join Date:
Mar 2008
Posts:
8
Plugin Contributions:
0

Adding more columns to the product listing page

Hello guys,

I have biotech products which needs to be listed in a table format as such on the product listing page.
Essentially, product name is just like before, Solution and Concentrated are read-only fields for each product, and datasheet is a downloadable PDF.

Product Name | Solution | Concentrated | Data Sheet
Antibody A | 6 ml | 1 ml | download
Antibody B | 8 ml | 2 ml | download
Antibody C | 6 ml | 3 ml | download

Is this possible? Can anyone give me some idea on how this could get started?

Thanks!
Thunderbird

23 Mar 2008, 1:15 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding more columns to the product listing page

If I understand what you seek then in the product description entry area you will create/insert a table for this data

http://www.w3schools.com/html/html_tables.asp

Zen-Venom Get Bitten

23 Mar 2008, 4:59 AM
#3
thunderbird2004 avatar

thunderbird2004

New Zenner

Join Date:
Mar 2008
Posts:
8
Plugin Contributions:
0

Re: Adding more columns to the product listing page

actually, not exactly, because the product description is 1 description per product

what I need is to have the product listing page, to be in a table format....

so this wouldn't be something for each product, but more a table under a category...

23 Mar 2008, 5:35 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding more columns to the product listing page

You are in luck - the default product listing for a category already exists in table format with these as headers:

Product Image
Item Name
Price

Zen-Venom Get Bitten

23 Mar 2008, 5:07 PM
#5
thunderbird2004 avatar

thunderbird2004

New Zenner

Join Date:
Mar 2008
Posts:
8
Plugin Contributions:
0

Re: Adding more columns to the product listing page

yes, but how do you add more headers?
I need to add 3 more headers beside the default ones!

24 Mar 2008, 5:27 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding more columns to the product listing page

As this is created through an array - Roll up your sleves as this will start with the tpl file for the product listing back into the module that gets the DB info for the array and back to the Database where you will need to adjust to store your new data.

Open the files and follow the logic back through the other files called

You can start with the includes/templates/template_default/templates/tpl_modules_product_listing.php
and check each include and require for other files

Zen-Venom Get Bitten

24 Mar 2008, 4:36 PM
#7
thunderbird2004 avatar

thunderbird2004

New Zenner

Join Date:
Mar 2008
Posts:
8
Plugin Contributions:
0

Re: Adding more columns to the product listing page

ok so those are the files -

the next question I have is - if I wanted to specify for each product the value for each header, where would I do that?

would that be some kind of attribute option/value thing?

the files there allows me to list things in a table format, but what about extracting the values to display? where is the best place to store those values for each product?

thanks,
thunderbird

24 Mar 2008, 6:19 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding more columns to the product listing page

if I wanted to specify for each product the value for each header, where would I do that?
By default the header titles are not variable - wanting this adds another layer of complexity where you will have to create the var in the DB and then call the var in the files that populate the header titles.

How is your php knowledge?

Zen-Venom Get Bitten

25 Mar 2008, 9:05 PM
#9
thunderbird2004 avatar

thunderbird2004

New Zenner

Join Date:
Mar 2008
Posts:
8
Plugin Contributions:
0

Re: Adding more columns to the product listing page

I am pretty good at php. I wrote some facebook applications a while back.

I realize I could actually use product attributes, but I have no idea how to get attributes to show on the product listing page....