Post by pbenfield » Wed Jun 29, 2011 7:19 pm

I would like to add further to the entry made by nuts0smart adding additional description text to the category view of a product. ie if a you click on a product range listed in a category the product come to view. I did not want to show text but to show how wide a product is, this is "length" with a cabinet.

I found out that all items listed for a product data can be made to appear next to or above the price. see http://www.online-biz-uk.co.uk as an example.

lets get started

open: catalgue/view/theme/default(your template)/template/product/category.tpl

place the following after the code below around line 54

Code: Select all

   <a href="<?php echo $products[$j]['href']; ?>"><?php echo $products[$j]['name']; ?></a><br />
		   <span style="color: #999; font-size: 11px;"><?php echo $products[$j]['model']; ?></span><br />
the following

Code: Select all

<?php echo $products[$j]['length'];?>&nbsp; cm. price:&nbsp;
You can add any text after :?> which will come after your new text and before the price (&nbsp; is spacing)

In my case it looks like this

.......Chicago Midi Base Cabinet 35
218.3042
35.00 cm. price: £209.00 .......

In your case it might be weight, location, width or any other item listed in product decritption or data listed in the product database (this is where the information is taken from.)

To let the template know it is a text entry you must add the following to

catalogue/controller/product/category.php

find the following code around line

Code: Select all

	$this->data['products'][] = array(
        name'    => $result['name'],
	'model'   => $result['model'],

add the following directly after

Code: Select all

'length'  => $result['length'],
if it is weight then it would be weight instead of "length" in both of the above entires etc etc

Hope this is useful to other users

New member

Posts

Joined
Wed Apr 20, 2011 3:43 pm

Post by PICZO » Wed Jul 13, 2011 4:58 am

how to upload the products photos. some of the are ok , but can not upload others, why ?
please if you can help?
daniel
piczo
piczocards@gmail.com

Newbie

Posts

Joined
Wed Jul 13, 2011 4:51 am
Who is online

Users browsing this forum: No registered users and 4 guests