Results 1 to 5 of 5

New Products in v2

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 ...

      
  1. #1
    Lurker
    Join Date
    Jun 2005
    Posts
    1
    Rep Power
    0


    Default New Products in v2

    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. #2
    Lurker
    Join Date
    Nov 2005
    Posts
    1
    Rep Power
    0


    Default RE: New Products in v2

    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. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,500
    Rep Power
    567


    Default RE: New Products in v2

    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


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    New Member
    Join Date
    Sep 2005
    Posts
    25
    Rep Power
    0


    Default

    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. #5
    Lurker
    Join Date
    Jan 2006
    Posts
    4
    Rep Power
    0


    Default

    Quote Originally Posted by Maximon View Post
    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%
    Just FYI, this worked like a charm....for what it's worth.

Similar Threads

  1. keep newest products up on main page under New Products for.
    By Redeye_Joe in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 12-04-2005, 11:37 AM
  2. 'New Products fro the Month' box disabled if no new products
    By hurst in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 09-16-2005, 07:26 AM
  3. new products-link show all products, not 10 as I configure..
    By mikkvais in forum osCommerce 2.2 Discussion
    Replies: 0
    Last Post: 08-23-2005, 02:31 PM
  4. All products showing up in New Products for the Month
    By BuckroeBill in forum osCMax v1.7 General Mods Discussion
    Replies: 0
    Last Post: 02-20-2005, 10:45 AM
  5. MS2-MAX: New Products Page: Change Products Per Row
    By glk in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 03-16-2004, 07:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •