Ajeh:
See if this works better to get the cPath you need:
zen_get_generated_category_path_rev(zen_get_product_path($product['id']))
Thank you ajeh for your response.I used this but it doesnt work either. Did I code it right? I placed this on includes/modules/pages/shopping_cart/header_php.php
$category_id = zen_href_link(zen_get_info_page($products->fields['product_id']),zen_get_generated_category_path_rev(zen_get_product_path($products['id'])));
and this is how I put the $category_id on includes/templates/mytemplate/templates/tpl_shopping_cart_default.php
<a href="<?php echo $product['category_id']; ?>"><font size="-2" color="#898787"><span id="cartProdTitle"><?php echo zen_get_categories_name(zen_products_lookup($product['id'], 'master_categories_id'));
; ?></span></a>
As of now I am working it on my local computer,I will just show you some graphics for you to understand more. This is what I have now in my shopping cart
Attachment #9954
when I click the subcategory name (the one underlined), it leads me here which is wrong. this give me this url <http://localhost:81/cncspares/index.php?main_page=product_info>
Attachment #9953
this is what I want,the listing to be displayed when the subcategory name is clicked.
Hope this make sense.
Thank you in advance.
Regards,
lala