PDA

View Full Version : Another take on price sorting


Bud
07-01-08, 00:51
I'm aware that price sorting per say isn't really possible and it may be a moot point with the upgrade due soon, but is it possible to simply eliminate all items under a certain price?

eg. Can all items, say under £2.00, be removed easily before they reach the product_display_list.php ?

Thanks

Andy
23-01-08, 18:32
I'm aware that price sorting per say isn't really possible and it may be a moot point with the upgrade due soon, but is it possible to simply eliminate all items under a certain price?

eg. Can all items, say under £2.00, be removed easily before they reach the product_display_list.php ?

Thanks
Dunno, but i suppose they could be removed in the template. Not 100% prctical I know, but it's a work around if you're desperate.

Confuscius
23-01-08, 19:29
Remember this : http://sunshop.shopwindow.com/giftfinder/?cid= ? - it does not have pagination but is making using of refine bys, I believe. This reveals the big issue that needs to be resolved in that I do not believe there is any way within the existing API to do this.

PLAN A:
However, lets say that you have ten items per page - issue the request for the first 10 items, put them in an array then if the number is less than 10 then fetch the next 10 and append, count the numbers again once you go past 10 stop and output the first 10 - so do the product fetch multiple times in a loop until you get the number required. Page 2 you need 11-20 so start from the beginning count to 21 , ignore the first 10, select 11-20. - So I reckon a bit of looping logic and using the current page number and you can get there. Should take Andy about 2 minutes to make sense of my ramble!

PLAN B:
Do nothing and wait to see what materialises!

Paul