This is a discussion on New Products in v2 within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; Hello, I have searched thru here and have yet to find a solution to keep new products showing even though ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hello, I have searched thru here and have yet to find a solution to keep new products showing even though they were in a previous month. If someone could point me to where I can make the change to keep products up on the main page without having to go into either easy populate or mysql to change the date added to the current month. Thanks RJ |
|
#2
| |||
| |||
| I just had this same problem, and found a relatively easy fix. Go to /catalog/includes/modules/new_products.php Find this code... $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, p.products_price as products_price from " . TABLE_PRODUCTS . " p where products_status = '1' and month(p.products_date_added) = month(now()) order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); Change to this code... $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, p.products_price as products_price from " . TABLE_PRODUCTS . " p where products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); Basically this where the script is saying if there is a product, and the date created is this month, show it in the table. You are changing this statement to; if there is a product, show it in the table. I tested it pretty thouroughly and it seems to work 100% |
|
#3
| ||||
| ||||
| This post is funny to me... Only because your 'fix' is exactly opposite of all the posts from about 6 months ago... See back then, osCMax automatically did what you are saying above, by default, and everyone complained that it was not working right... So, we fixed it... And now, of course, all we see are questions about how to 'fix' this again, effectivly changing it back to its 'broken' function. If you spend too much time on this stuff, it starts making you laugh. Just making an observation ... carry on!
__________________ Michael Sasek osCMax Developer
|
|
#4
| |||
| |||
| How about a fix to the fix before the fix that was the new fix? ha ha kind of reminds a person of a certain cola... anywho, I wonder if there would be a way to insert the option in admin to display the last XX number of items added to the catalog, or the items this month only... and/or a third option ... to kill the new items period... and have the option to add a list of admin controled "featured items" but then again, this would be so complicated that even more questions regarding configuration would be posted.... ok, I'll stop rambling and dreaming out loud... |
|
#5
| |||
| |||
| Quote:
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| keep newest products up on main page under New Products for. | Redeye_Joe | osCMax v2 Customization/Mods | 2 | 12-04-2005 11:37 AM |
| 'New Products fro the Month' box disabled if no new products | hurst | osCMax v2 Installation issues | 3 | 09-16-2005 06:26 AM |
| new products-link show all products, not 10 as I configure.. | mikkvais | osCommerce 2.2 Discussion | 0 | 08-23-2005 01:31 PM |
| All products showing up in New Products for the Month | BuckroeBill | osCMax v1.7 General Mods Discussion | 0 | 02-20-2005 10:45 AM |
| MS2-MAX: New Products Page: Change Products Per Row | glk | osCommerce 2.2 Modification Help | 0 | 03-16-2004 07:43 PM |