osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-02-2005, 06:27 AM
Lurker
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rjdj2005
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-10-2005, 11:10 AM
Lurker
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Maximon
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%
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-10-2005, 01:42 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,330
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-10-2005, 03:05 PM
New Member
 
Join Date: Sep 2005
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
timbrrr
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 12-02-2006, 04:03 PM
Lurker
 
Join Date: Jan 2006
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
cesara
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 05:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax