Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / don't show the categories list on the product page

don't show the categories list on the product page

Started by runeveryday on 23 Sep 2011, 3:24 AM · Views: 344

Results 1 to 2 of 2
23 Sep 2011, 3:24 AM
#1
runeveryday avatar

runeveryday

New Zenner

Join Date:
Sep 2011
Posts:
1
Plugin Contributions:
0

don't show the categories list on the product page

now, i want to make the categories list now show on the product page.which controled by the** tpl_product_info_display.php** file,. how should i do? thank u

23 Sep 2011, 6:29 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: don't show the categories list on the product page

Modified from a recent thread:

Quick & dirty: Add to your stylesheet

#productinfoBody #categories {display: none;}

Proper way: Edit /includes/modules/sideboxes/categories.php; at the top of the file, add

if ($current_page_base != 'product_info') {

before
$main_category_tree = new category_tree;

and after
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
add

}

Save the edited file to /includes/modules/sideboxes/your_template/categories.php