osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Limit new products or bestsellers by date

This is a discussion on Limit new products or bestsellers by date within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; I corrected some errors in the previous upload for best_seller.php Specifically, the clause {p.products_quantity = 1} was restricting the best ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 06-01-2008, 10:11 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,979
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
Post Limit new products or bestsellers by date

I corrected some errors in the previous upload for best_seller.php

Specifically, the clause {p.products_quantity = 1} was restricting the best sellers list to products whose stock quantity is equal to 1, the clause {p.products_quantity < 4} was measuring total stock, not quantity ordered for a given order, et cetera.

Also, though the date range restriction was working, the quantity sold was taken as total quantity sold for all time, not the quantity sold during the date period of the date range restriction. I fixed this too.

best_sellers.php now works as intended.

More...
__________________
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!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
Select a delivery date (or a shipping date) laura90059 osCMax v2 Customization/Mods 0 11-20-2007 08:30 AM
Products Purchased with Date Range michael_s New osCommerce Contributions 0 09-08-2007 04:12 PM
Limit maximum number of products in basket robroymedia osCMax v1.7 General Mods Discussion 2 07-07-2004 08:38 AM
How to limit 'new products' SnowBord osCMax v1.7 Discussion 1 01-01-2004 03:32 PM
Upcoming Products reverse date sort mdanby osCommerce 2.2 Modification Help 0 10-30-2003 09:05 AM


All times are GMT -8. The time now is 06:25 PM.


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