You have two files to customize if you NEVER want the products_date_available to change except when you manually change it ...
/your_secret_admin/includes/modules/update_product.php
comment out the line that removes it when in the Admin:
Code:
} elseif ($_POST['products_model'] . $_POST['products_url'] . $_POST['products_name'] . $_POST['products_description'] != '') {
$products_date_available = zen_db_prepare_input($_POST['products_date_available']);
// $products_date_available = (date('Y-m-d') < $products_date_available) ? $products_date_available : 'null';
// Data-cleaning to prevent MySQL5 data-type mismatch errors:
then in the Catalog, you need to change the date filter so ALL dates are valid unless blank by commenting the old method and adding a new date range that will force it to always be valid when not blank ...
/includes/functions/functions_lookups.php
Code:
// build date range for upcoming products
function zen_get_upcoming_date_range() {
// 120 days; 24 hours; 60 mins; 60secs
$date_range = time();
$zc_new_date = date('Ymd', $date_range);
// need to check speed on this for larger sites
// $new_range = ' and date_format(p.products_date_available, \'%Y%m%d\') >' . $zc_new_date;
// $new_range = ' and p.products_date_available >' . $zc_new_date . '235959';
$new_range = ' and p.products_date_available > "2000-01-01"';
return $new_range;
}