this is an issue that i have struggled with in the past. but hiding these items from site search does not really hide the items. google will still find them. your category listings will still show them, if you have a product feed for search engines, they will still be there, and heavens to betsy if those items make it to your best sellers list prior to having a 0 quantity.
from what i remember, v157 now has a facility for setting future date available, and inactivating items until the date comes. which could probably be easily modified to accommodate items that 0 quantity going into and out of stock. i remember looking at that modification, which i think makes use of cron jobs (scheduled jobs) to do its work, and thinking it is a good solution to a royal pain of a problem.
in the past (on live sites), these are some of the files (not all are base ZC files, but most are) i have had to modify to ensure that no items with 0 quantity or a future arrival date show up on a site:
Code:
googlefroogle.php
includes/index_filters/default_filter.php
includes/classes/db/mysql/define_queries.php
includes/modules/YOUR_TEMPLATE/new_products.php
includes/modules/YOUR_TEMPLATE/featured_products.php
includes/modules/YOUR_TEMPLATE/specials_index.php
includes/modules/pages/sitemapxml/sitemapxml_products.php
includes/modules/pages/advanced_search_result/header_php.php
includes/modules/pages/products_all/header_php.php
includes/modules/pages/product_info/header_php.php
includes/modules/pages/product_info/main_template_vars.php
includes/modules/pages/products_new/header_php.php
includes/modules/sideboxes/YOUR_TEMPLATE/whats_new.php
includes/modules/sideboxes/YOUR_TEMPLATE/best_sellers.php
includes/modules/product_prev_next.php
includes/functions/functions_lookups.php
includes/functions/functions_prices.php
includes/extra_datafiles/added_sql.php
having a product class would make this so much easier..... i think.....
best.
Bookmarks