Hi Linda, I need your help again :-)
I have another problem now which is slightly related. I have just found out that all the categories on http://www.jakwater.co.uk will be Royal Mail Track and Trace apart from 'Chemicals' which will need splitting into two categories
Chemicals > First Class
Chemicals > Royal Mail Track and Trace
So applying your code is much easier apart from we need to display all the sub category products in the top level Chemicals category, not Chemicals > First Class and Chemicals Royal Mail Track and Trace
I decided that probably the easiest way of doing this would be to adapt the Products New Center Box and make it look like the product listing, then display that above the First Class (non flammable) and Track and Trace Categories (flammable).
However you can't display a buy now and product description by default.
I found your code to display a buy now on specials so wondered if this could be adapted? OR could the products be made so no matter if theres a sub category they all display in the top level category?
This was the code from your post about displaying a buy now button on specials.
http://www.zen-cart.com/forum/showthread.php?t=115495&highlight=Buy+button+Specials
$products_link = '';
if (zen_has_product_attributes($specials_index->fields['products_id'])) {
$products_link = '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? $_GET['cPath'] : zen_get_generated_category_path_rev($specials_index->fields['master_categories_id']))) . '&products_id=' . $specials_index->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
} else {
$products_link = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $specials_index->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';
}
$specials_index->fields['products_name'] = zen_get_products_name($specials_index->fields['products_id']);
$list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsSpecials centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => (($specials_index->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . $productsInCategory[$specials_index->fields['products_id']] . '&products_id=' . (int)$specials_index->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $specials_index->fields['products_image'], $specials_index->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . $productsInCategory[$specials_index->fields['products_id']] . '&products_id=' . $specials_index->fields['products_id']) . '">' . $specials_index->fields['products_name'] . '</a><br />' . $products_price . '<br>' . $products_link);