osCmax v2.5 User Manual
Results 1 to 4 of 4

New Products showing from this month but all years

This is a discussion on New Products showing from this month but all years within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Instead of showing new products from "June" of this year its showing new products from "June" of any year. located ...

      
  1. #1
    New Member
    Join Date
    Feb 2010
    Posts
    26
    Rep Power
    0


    Default New Products showing from this month but all years

    Instead of showing new products from "June" of this year its showing new products from "June" of any year.

    located in includes/modules/new_products.php I see the following:
    and month(p.products_date_added) = month(now())

    is it possible to alter this file to add something like year(now()) so it really shows new products??????

    thanks in advance

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: New Products showing from this month but all years

    Always worth having a quick search through the forums ...

    Try this thread


    Regards,
    pgmarshall
    _______________________________

  3. #3
    New Member
    Join Date
    Feb 2010
    Posts
    26
    Rep Power
    0


    Default Re: New Products showing from this month but all years

    I appreciate your response, I really do.. but it can also be worth reading the question too

    I asked about only showing new products from this month AND this year.. I saw that other post and that simply lists all new products from newest to oldest which is ok, but its not what I was asking

  4. #4
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: New Products showing from this month but all years

    Not sure why you want to restrict it by month but yes just add:

    and year(p.products_date_added) = year(now())
    Not tested but can't see any reason why it wouldn't work.

    Regards,
    pgmarshall
    _______________________________

Similar Threads

  1. New Products for 'month
    By rustamd in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 05-23-2010, 01:06 PM
  2. Changing newest products of the current month to just the latest products
    By gregdavidson in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 04-19-2009, 10:38 AM
  3. New Products for month
    By dinbutt in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 06-23-2008, 01:21 PM
  4. I want to get rid of new products box for month etc
    By gasketking in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 10-31-2005, 06:58 AM
  5. 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, 09:45 AM

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
  •