I am using this mod to create a page to be spidered by a product/price search engine and I am stuck.
The layout is simple and I have the display working perfect except for one thing.
The problem is that I need to display the category name of the ROOT category. Right now I am getting the subdirectory displayed as Cat1/Cat2/Cat3. I just need Cat1.
I am using
{$products[product].category}. What SHOULD I be using to just get the root cat?
Thanks in advance for assistance. I know this is simple, but I am totally confused.
My show_all.tpl
Code:
<table>{section name=product loop=$products}
<tr>
<td>
{$products[product].product|escape}
</td>
<td>
{$products[product].price}
</td>
<td>
http://www.adpmods.com/xcart/customer/product.php?productid={$products[product].productid}
</td>
<td>
{$products[product].category}
</td>
</tr>{/section}
</table>