osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

New products listing

This is a discussion on New products listing within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I think this has been asked before but I've not seen an answer to it yet, the new products list ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 05-08-2004, 05:15 AM
New Member
 
Join Date: Feb 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
robroymedia
Default New products listing

I think this has been asked before but I've not seen an answer to it yet, the new products list shows all products regardless of when the product was added to the catalogue, I've changed the date added to 4 years ago but it still appears in the new products list (albeit at the end of the list). Does anyone have a fix for this as it seems to defeat the object of "new products" a little.

Rob.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 05-08-2004, 08:44 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,990
Thanks: 80
Thanked 345 Times in 324 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

This is answered in the guide:

http://oscdox.com/modules.php?op=mod...ToCurrentMonth

Note that instead of /catalog/products_new.php, you will need to edit /catalog/templates/aabox/content/products_new.tpl.php. Other than that, the edit will still do the job.

This should have been fixed in MAX a long time ago, but it was overlooked. I have added this fix to the upcoming release of OSCmax.

If you are not comfortable editing files, I have released a bugfix package here that you can get on the main forum page under Announcements.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • 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. Default multi server configuration for exceptional performance!

  • 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!
  #3  
Old 05-10-2004, 08:45 AM
New Member
 
Join Date: Feb 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
robroymedia
Default

Thanks for the reply, the changes suggested work fine until you get to the same month a year later when the products appear as being new again! added the following code to the select statement:

$new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id,
IF(s.status, s.specials_new_products_price, p.products_price) as products_price from "
. TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where
products_status = '1' and month(p.products_date_added) = month(now()) and year(p.products_date_added) = year(now()) order by
p.products_date_added DESC limit " . MAX_DISPLAY_NEW_PRODUCTS);
$new_products_query = tep_db_query("select distinct p.products_id, p.products_image,
p.products_tax_class_id, IF(s.status, s.specials_new_products_price, p.products_price) as products_price
from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, "
. TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id =
p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '"
. $new_products_category_id . "' and p.products_status = '1'
and month(p.products_date_added) = month(now()) and year(p.products_date_added) = year(now()) order by p.products_date_added
DESC limit " . MAX_DISPLAY_NEW_PRODUCTS);

That should do it, apart from the random "whats new" box needs changing aswell.

Regards
Rob.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
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
I want to show products in category listing misbell osCommerce 2.2 Modification Help 1 01-27-2005 07:33 PM
Modyfying product listing and new products listing pavlo osCommerce 2.2 Modification Help 0 11-22-2004 08:27 AM
Products Listing Layout NickW osCMax v1.7 General Mods Discussion 2 06-24-2004 03:42 PM
drop down listing all products Anonymous osCMax v1.7 Discussion 0 05-11-2004 09:28 AM
2 products instead of 3 in product listing? amilo osCMax v1.7 Discussion 3 01-25-2004 10:23 PM


All times are GMT -8. The time now is 03:23 AM.


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