A quick way to do this is to customize the functions zen_get_buy_now_button and zen_get_products_display_price and change the tpl_product_info_display.php ...
In the file:
/includes/functions/functions_general.php
around line 1134 add the code in RED:
Code:
case ($button_check->fields['products_quantity'] <= 0 || $button_check->fields['product_is_call'] == '1'):
In the file:
/includes/functions/functions_prices.php
around the line 193 add the code in RED:
Code:
$product_check = $db->Execute("select products_quantity, products_tax_class_id, products_price, products_priced_by_attribute, product_is_free, product_is_call, products_type from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'" . " limit 1");
if ($product_check->fields['products_quantity'] <= 0) {
return '';
}
/includes/templates/your_template_dir/templates/tpl_product_info_display.php
around the line 132 add the code in RED:
Code:
if ($products_quantity > 0 && $pr_attr->fields['total'] > 0) {
Bookmarks