Originally Posted by
limelites
Sorry to dig up an old thread but i don't think the OP was asking how to change it in admin.... they're asking how to change the limit from 120 days to say, 180 days or 500 days.
Is this a MYSQL table or a PHP file?
The options available for the selection are stored in the database associated with the configuration_key of 'SHOW_NEW_PRODUCTS_LIMIT'. The limit(s) can be extended by adding to the list of options (don't have to replace the existing ones) and modifying the code of the function zen_get_products_new_timelimit found in includes/functions/functions_lookups.php. The function begins around line 863 with changes to be made at or after 867. The original sql statement to generate the list was:
Code:
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('New Product Listing - Limited to ...', 'SHOW_NEW_PRODUCTS_LIMIT', '0', 'Limit the New Product Listing to<br />0= All Products<br />1= Current Month<br />7= 7 Days<br />14= 14 Days<br />30= 30 Days<br />60= 60 Days<br />90= 90 Days<br />120= 120 Days', '3', '40', 'zen_cfg_select_option(array(\'0\', \'1\', \'7\', \'14\', \'30\', \'60\', \'90\', \'120\'), ', now());
Bookmarks