Trying to achieve what the thread title states:
Latest Zen Cart Version Installed
Custom Categories Side-box:
Basically I am calling sub-categories and displaying in a div which is visible on:hover
Example
Attachment 13045
If the main category has (no) sub-categories I am calling first 5 products and displaying in a div which is visible on:hover
Example
Attachment 13046
I have used the following code but for some reason can not get it to execute:
With sub-categories I use:
But it still returns:PHP Code:$cPath_new=zen_get_path($subcategories->fields['categories_id']);
$cPath_new=str_replace('=0_', '=', $cPath_new);
$cPath_new="cPath=".$subcategories->fields['categories_id'];
echo '<li>'.'<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">'.$subcategories->fields['categories_name'].'</a></li>';
index.php?main_page=product_info&cPath=17&products_id=180
Instead of:
index.php?main_page=product_info&cPath=1_17&products_id=180
For products I use:
But it still returns:PHP Code:$cPath_new=zen_get_path($categories->fields['categories_id']);
$cPath_new=str_replace('=0_', '=', $cPath_new);
echo '<li>'.'<a href="'.zen_href_link(zen_get_info_page($products->fields['products_id']),$cPath_new. '&products_id=' . $products->fields['products_id']) . '">'.$products->fields['products_name'].'</a></li>';
index.php?main_page=product_info&cPath=&products_id=115
Instead of:
index.php?main_page=product_info&cPath=53&products_id=115
Any Ideas?


Reply With Quote


