Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Customising the product listing

Customising the product listing

Locked

Views: 661

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
18 May 2009, 2:04 PM
#1
wilbo avatar

wilbo

New Zenner

Join Date:
May 2009
Posts:
43
Plugin Contributions:
0

Customising the product listing

Hi there,

I'm trying to customize the product listing by modifying tpl_tabular_display.php only I can't work out how to get hold of the various bits (image, title, description, buy now button etc).

Can someone tell me how I get hold of them?

Thanks in advance

18 May 2009, 3:13 PM
#2
wilbo avatar

wilbo

New Zenner

Join Date:
May 2009
Posts:
43
Plugin Contributions:
0

Re: Customising the product listing

OK, here's how I did it in the end, obviously this depends on the order you set the various parts in Configuration -> Product Listing.

for($row=1; $row<sizeof($list_box_contents); $row++) {
	echo '<div class="productListProductHolder">';
	
		echo '<div class="productListPic">';
			echo $list_box_contents[$row][0]['text'];
		echo '</div>';
		
		echo '<div class="productListTitle">';
			echo $list_box_contents[$row][1]['text'];
		echo '</div>';
		
		echo '<div class="productListArtist">';
			echo $list_box_contents[$row][2]['text'];
		echo '</div>';
		
		echo '<div class="productListPrice">';
			echo $list_box_contents[$row][3]['text'];
		echo '</div>';
		
		
	
	echo	'</div>';

I'm sure there's a clevery way of doing it, but this will get the job done if you don't plan on changing the layout from the admin panel

18 May 2009, 3:40 PM
#3
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Customising the product listing

I think you're in the wrong file... look at tpl_product_info_display.php

18 May 2009, 4:00 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Customising the product listing

Why would you modify tpl_tabular_display.php? /includes/modules/your_template/product_listing.php would be the best place to make modifications (or /includes/templates/your_template/templates/tpl_modules_product_listing.php, depending on exactly what you are trying to do.)

18 May 2009, 4:07 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Customising the product listing

I suppose if what you are trying to do is make the listing completely div-based instead of a table, you would have to edit that file. Be aware that other outputs use the same tpl file, and your modifications may make them fail.