Jack_mcs, on 15 March 2013 - 04:27 PM, said:
Thanks Jack
Posted 15 March 2013 - 07:00 PM
14steve14, on 15 March 2013 - 06:04 PM, said:
Posted 24 March 2013 - 11:12 AM
Edited by Matjaz, 24 March 2013 - 11:22 AM.
Posted 24 March 2013 - 03:04 PM
$boxName = explode(".", $activeBox);
to
$boxName = explode(".", implode($activeBox));
Posted 25 March 2013 - 10:51 AM
Posted 25 March 2013 - 01:17 PM
Matjaz, on 25 March 2013 - 10:51 AM, said:
Posted 25 March 2013 - 06:31 PM
Posted 25 March 2013 - 06:49 PM
Posted 13 May 2013 - 11:26 PM
Posted 15 May 2013 - 04:12 PM
Posted 15 May 2013 - 04:50 PM
$showCategories .= tep_draw_form('sitemap', tep_href_link(FILENAME_SITEMAP_SEO)) . tep_hide_session_id() . tep_draw_hidden_field('show_products', $showStatus);
$showCategories .= '<a class="sitemap" href="javascript:document.sitemap.submit()">' . $showProducts . '</a> ';
$showCategories .= '</form></th></tr>';
Posted 23 May 2013 - 10:29 PM
// DISABLE CATEGORY WITH NO PRODUCT
$bShowCategory = false;
$products_in_category = tep_count_products_in_category($counter);
if ($products_in_category > 0){
for ($i=0; $i<$tree[$counter]['level']; $i++) {
$categories_string .= " "; /*alters the offset of subcategories*/
}
$categories_string .= '<a href="';
if ($tree[$counter]['parent'] == 0) {
$cPath_new = 'cPath=' . $counter;
} else {
$cPath_new = 'cPath=' . $tree[$counter]['path'];
}
$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';
/* if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '<strong>';
} commented out original before "easier categories in 2.3.1.*/
if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '<span class="categoryBox-active">';
} else {
$categories_string .= '<span class="categoryBox">';
}
// display category name
$categories_string .= $tree[$counter]['name'];
/* if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '</strong>';
}*/
$categories_string .= '</span>';
/*if (tep_has_category_subcategories($counter)) {
$categories_string .= '->';
}*/
$categories_string .= '</a>';
if (SHOW_COUNTS == 'true') {
$products_in_category = tep_count_products_in_category($counter);
if ($products_in_category > 0) {
$categories_string .= ' (' . $products_in_category . ')';
}
}
$categories_string .= '<br />';
}
//End Hide Empty Category
Posted Yesterday, 12:58 AM
function buildProducts($category_id)
{
and add this after itif ($products_in_category < 1) return '';
Posted Yesterday, 10:16 PM