sorting product listing by price and results per page

dcistudios

Avatar: dcistudios

2010-09-29 22:24

Hi. I would like to know how to sort products by their prices, either ascending or descending. In essence, a drop down menu with 2 options, low to high or high to low. Secondly, is there a way to change the number of products being displayed. The 2 mods should happen in the client side and not the admin side.

» Quick.Cart v3.x

boboo

Avatar: boboo

2010-09-30 07:05

2.
$iProductsList = isset( $bViewAll ) ? 999 : null;
$sProductsList = ( $aData['iProducts'] == 1 || ( isset( $sPhrase ) && $config['page_search'] == $iContent ) ) ? $oProduct->listProducts( $aData['sTemplate'], $iContent, $iProductsList ) : null;

this you can find in /actions_client/p.php
what i want to say: the parameter $iProductsList will get the value 999 or null - depending on ViewAll click.
if null, then it will be read from $config['products_list'] in the listProducts function. all you have to do is to manipulate (with dropdown menu) the value of $iProductsList.

1. In the newest (3.6) QC version in /core/products.php you will find a beautifull sortProducts function. use it.

http://skupienie.kimla.de/?software-quickcart,106

dcistudios

Avatar: dcistudios

2010-09-30 09:13

Thanks Boboo.

I will give you suggestion a try later today. As to the sort part, any pointer as to how to do it?

boboo

Avatar: boboo

2010-09-30 09:41

For sorting try to translate this topic ;-)
http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=6993

http://skupienie.kimla.de/?software-quickcart,106

juegossexxxuales

Avatar: juegossexxxuales

2011-07-13 20:38

Can anybody help with the first question, i do want to sort products by price... pls!

Jules

Back to top
about us | contact