In your first post you say:
Quote:
I am trying to add a link (view all items in this category) in my related products tpl.
|
Well, the issue here really is that the query to get the related products does not look up the primary Category ID and add it to the respective product in the $recommends array (or the $product_links array - there are two different modules that will generate the links for you like that).
So to get this to work like you want, you would need to hack the
recommends.php in the root dir and also the
/modules/Upselling_Products/related_products.php file to query the xcart_products_categories table and add that to the array.