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

How to not show a product as New?

This is a discussion on How to not show a product as New? within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; Anyone have an easy way if you add a product that it does not show as new? Everytime I add ...

      
  1. #1
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default How to not show a product as New?

    Anyone have an easy way if you add a product that it does not show as new?
    Everytime I add a product it shows as new however sometimes in my case it is not new but will end up on the front with the other ones that are new.

    Thanks in advance.

  2. #2
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    26


    Default Re: How to not show a product as New?

    new products are determined by the now() that is used to add them to the database. There is no way to edit this field from within osc, but you can use phpadmin or another tool to access the database and change the date after you have added the product to change the date the product was added to the store and that will remove it from the New Products listing (ie: backdate the products addition by a year).

    the table is products
    the field is products_date_added
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  3. #3
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default Re: How to not show a product as New?

    Met00

    I did that and it shows a year earlier in the database but not on the site for some reason. ???

  4. #4
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    26


    Default Re: How to not show a product as New?

    Here is the query from /includes/modules/new_products.php

    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);
    Interesting, the code has a crap component, it doesn't check for the month and year, just the month. I would consider this a major defect in the code (or as some people refer to it... a bug). My suggestion is that someone fix the sql query as this is a major "bug" if you don't add any new products for that month it will pick up the last years new products added in that month.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  5. #5
    Lurker
    Join Date
    Jun 2006
    Posts
    2
    Rep Power
    0


    Default Re: How to not show a product as New?

    i Also Have this problem. How to resolve this problem??

  6. #6
    osCMax Developer

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


    Default Re: How to not show a product as New?

    read the stickies:
    products_new.tpl.php

    It is original osC code and hardly a major bug. Very simple to change, thus the sticky in the forums. It is on the list of things to do and will make it into the 2.0 full release (probably the next RC, but no promises)
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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

  7. #7
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    26


    Default Re: How to not show a product as New?

    Interesting, but I disagree. If every time you turned on the right turn indicator in your car it indicated that you were going to make a left turn, that would be a minor defect?

    Major defects are those that either (1) stop operation or (2) provide significant misinformation from correct operation. I believe listing products that are a year old as "new" classifies as (2) in much the same way as the turn indicator on your car telling other drivers misinformation would be a major defect.

    Minor defects deal with stylesheet and look and feel issues that present information poorly. Think again of the car and a window that when closed doesn't seal properly and whistles at you. It doesn't affect the operation of the vehicle and doesn't misinform others.

    If you look at the original Recover Carts I released. There were no "major defects". But, the entire project blew off all the standard OSC look and feel requirements for the admin. This was one big "minor defect". Thus over time people have tweaked the basic application adding a very few new features, but in fact have not done much to the basic application and have made no "fixes" to any major defects that I had introduced in the code. Almost all of the changes that were made had to do with fixing minor defects and making it work like a part of OSCs admin.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  8. #8
    osCMax Developer

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


    Default Re: How to not show a product as New?

    It is considered a minor issue in that it in no way causes the cart to stop functioning and is a secondary or some would argue tertiary feature. We at oscmax define major bugs as those that cause the application to fail to function, fail to allow sales, or as critical security issues. Information issues of this nature or not considered major or critical and would be classified as a minor issue or a tweak.

    Your example of the turn signal does not really apply since this is such a non-critical feature when compared to a turn signal. Nobody can be killed if a product is marked as new when it really isn't (or in e-commerce terms, your site will not stop functioning because you show a product that is not new as new). Also, this issue does not do the exact opposite of what is expected as your turn signal example, rather it simply does something extra (more like every twelfth blink of the turn signal it flashes both left and right at the same time).

    While I agree that the function leaves something to be desired, it is hardly a major issue. In fact some have posited that this actually creates interest in products that would otherwise not be displayed, and like having it.
    I can guarantee as soon as this 'issue' is 'fixed', I will get no less than 5 emails complaining about how I broke this 'feature' and they want it back.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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

  9. #9
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    26


    Default Re: How to not show a product as New?

    That's why at the same time it's "fixed" we should add a new module called "random products" that does what happens now, but with a bit more randomization.

    a defect that does something that is serendipitous should be a feature on its own.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

Similar Threads

  1. how to show product number for affiliates
    By soibaal in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 07-18-2007, 01:32 AM
  2. Show All Product Results
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-12-2007, 03:00 PM
  3. show/hide product attributes
    By limpduck in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 03-02-2005, 10:36 PM
  4. Problem w/ product show on msmx1.7
    By knullhund in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 11-18-2004, 09:20 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
  •