Argg! Bug! Anyway, I could not find an edit in this forum, so I will just repost here with this correction:
And here is the repost:Code:case ($button_check->fields['products_age_in_days'] <= SHOW_NEW_PRODUCTS_LIMIT and $_GET['main_page'] != zen_get_info_page($product_id)):
Here is what I did in case anyone else needs this:
/includes/functions/functions_general.php
Changed this (about line 1138):
To this:Code:$button_check = $db->Execute("select product_is_call, products_quantity " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");
Added this:Code:$button_check = $db->Execute("select product_is_call, products_quantity, TO_DAYS(NOW()) - TO_DAYS(products_date_added) products_age_in_days from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");
Below this (about line 1147):Code:case ($button_check->fields['products_age_in_days'] <= SHOW_NEW_PRODUCTS_LIMIT and $_GET['main_page'] != zen_get_info_page($product_id)): $return_button = zen_image_button(BUTTON_IMAGE_NEW_SMALL, BUTTON_SOLD_NEW_ALT); break;
/includes/languages/english/button_names.phpCode:case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'): if ($_GET['main_page'] == zen_get_info_page($product_id)) { $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT, BUTTON_SOLD_OUT_ALT); } else { $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT); } break;
Added:
Added graphic:Code:define('BUTTON_SOLD_NEW_ALT', 'New'); define('BUTTON_IMAGE_NEW_SMALL','button_new_sm.gif');
/includes/templates/my_template/buttons/english/button_new_sm.gif


Reply With Quote
