I want to hide the attributes section of products in a particular category only but still show them for all other categories - say category id 77 all products should not show attributes. the reason i want to do this is so that a hidden attribute can be passed when a product is purchased.
I tried this but it does not work:
if ($listing->fields['master_categories_id'] == '77') {
echo ''
} else {
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php');
}
it just always shows the template for attributes, i think it is something to do with the first line ....anyone any ideas??
Thanks in advance



