Category problem

zandmanneke

No avatar

2005-07-03 18:10

Hello,

I'm modifying the Random Product plugin for my own use and thus far it shows the random product just like the normal product listing.

My only problem is that instead of showing the category name, it only shows the number. How can I make it display the category name? I'm editing in randomProduct.tpl

Any help is as always greatly appreciated!

Zandmanneke

zandmanneke

No avatar

2005-07-05 20:19

UPDATE:

Still working on it, here's a piece of HTML in which I want to insert the category name (or subcategory)

<td>
<a href='?p=productsMore&amp;iProduct=$aProduct[id]'><span class='product_list_name'>$aProduct[name]</span></a><br />
&nbsp;&nbsp;
<a href='?p=productsList&amp;iCategory=$aProduct[category]'><span class='product_list_category'>$aProduct[category]</span></a>< br />
Really, I cannot seem to get the Category name, anyone has any idea?
</td>
<td class='product_list_price'>
$aProduct[price]&nbsp;$config[currency_symbol]
</td>

Zandmanneke

Back to top
about us | contact