Results 1 to 5 of 5
  1. #1
    Join Date
    May 2009
    Posts
    43
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    May 2009
    Posts
    43
    Plugin Contributions
    0

    Default 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.


    Code:
    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

  3. #3
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Customising the product listing

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

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.)

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 6 Jul 2012, 08:52 PM
  2. Showing Images within the Product Description in the product listing
    By Jeniferous in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 26 Nov 2010, 11:42 AM
  3. Customising the Admin/Product entry page?
    By TouranMan in forum General Questions
    Replies: 7
    Last Post: 11 Aug 2009, 10:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg