If you wanted to prevent Products in master_categories_id 10 from being added to cart, you could customize the function_general.php and add the code in RED:
Code:
// Switch buy now button based on call for price sold out etc.
function zen_get_buy_now_button($product_id, $link, $additional_link = false) {
global $db;
// show case only superceeds all other settings
if (STORE_STATUS != '0') {
return '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . TEXT_SHOWCASE_ONLY . '</a>';
}
// bof: no add to cart for Products in master_categories_id 10
$chk_cat = zen_products_lookup($product_id, 'master_categories_id');
if ($chk_cat == 10) {
return 'Product unavailable';
}
// eof: no add to cart for Products in master_categories_id 10
Bookmarks