Author |
Topic |
|
pelicanPaul
Starting Member
31 Posts |
Posted - February 15 2007 : 16:05:10
|
hi,
this subroutine NavigateTopTen does not work correctly.
I have products with subproducts but all it is showing is the first sold product.
Access DB.
see: http://www.hunterhouse.com/topten.asp
I took it out and am displaying on a separate page.
has anyone run into this or delt with this sub... it has a lot of conditional for types of DB and all and is a bit hard to follow.
thanks,
Paul |
|
Kidd
VP-CART Super User
Australia
373 Posts |
Posted - February 15 2007 : 22:17:46
|
do you mean its only showing the parent product instead of the sub?
how many orders have you got on your stores?
|
|
|
pelicanPaul
Starting Member
31 Posts |
Posted - February 16 2007 : 11:04:20
|
check it out. here is a list of products sold and gives you a sum of what is sold. the shop is brand new so not very many numbers but there are some
http://www.hunterhouse.com/toptenraw1.asp
the sql is
SELECT TOP 10 oitems.catalogid, Sum(oitems.numitems) AS sumofnumitems, products.cname, products.cdescription FROM orders, oitems INNER JOIN products ON oitems.catalogid = products.catalogid WHERE (((orders.orderid)=[oitems].[orderid])) GROUP BY oitems.supplierid, oitems.catalogid, oitems.unitprice, products.cname, products.cdescription ORDER BY Sum(oitems.numitems) DESC;
|
|
|
pelicanPaul
Starting Member
31 Posts |
Posted - February 16 2007 : 11:12:36
|
so the script NavigateTopTen
only shows one item and it happens to be the first sold.
|
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - February 16 2007 : 11:22:13
|
yep; there are loads of ways to do what you're after; tweaking the existing top-ten-sql, creating your own, or, you could try our product-showcase function which includes a top-seller list (among millions of other things), it also allows you to use context (category) sensitive top-sellers if you want:
http://www.bigyellowzone.com/shopexd.asp?id=105
also, check the stock-level and hide-flags for the sub-products; it might be those which are stopping them from displaying on the normal vpasp top-sellers.
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
Edited by - devshb on February 16 2007 11:26:07 |
|
|
|
Topic |
|