NoddyAsh Posted October 3, 2008 Posted October 3, 2008 Hi, When I add new products for October I don't want old products showing up in the new products pages. I've found these help files at http://www.oscommerce.info/kb/osCommerce/G..._and_Tricks/264 but they refer to the old version I think as the codes is shown different. Also dated Sept 2005. Are there more up to date instructions somewhere to do the same thing? Thanks for reading. Russ
spooks Posted October 3, 2008 Posted October 3, 2008 mod I do is add: $date = strtotime("-90 days"); // set max age of displayed product $date = strftime("%Y-%m-%d",$date); then add to the query: and p.products_date_added > '".$date."' Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
NoddyAsh Posted October 3, 2008 Author Posted October 3, 2008 mod I do is add: $date = strtotime("-90 days"); // set max age of displayed product $date = strftime("%Y-%m-%d",$date); then add to the query: and p.products_date_added > '".$date."' Sorry, which files are to edit? Ta.
spooks Posted October 3, 2008 Posted October 3, 2008 Sorry, which files are to edit? Ta. products_new.php and includes/modules/new_products.php Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
NoddyAsh Posted October 4, 2008 Author Posted October 4, 2008 products_new.php and includes/modules/new_products.php K thanks. Still new at this so is it obvious where the changes in the file actually go? Sorry to be dim. Russ
Recommended Posts
Archived
This topic is now archived and is closed to further replies.