Sort by price in Quick.Cart v3.x

szpeti

No avatar

2008-05-19 23:43

Hi!
Is it possible to change the order of the displayed products by their price, instead of their names?

» Quick.Cart v3.x

treewood (OpenSolution)

Avatar: treewood

2008-05-20 08:10

szpeti - yes it is possible but then you will not sort by position and names.
Edit db/en_products.def.php or db/pl_products.def.php and find:

$aFieldsSort    = Array( 'iPosition''sName''iProduct''sAvailable''fPrice''sDescriptionShort''iStatus' );

change to

$aFieldsSort    = Array( 'fPrice''iPosition''sName''iProduct''sAvailable''sDescriptionShort''iStatus' );

After edit product in admin area and save it. It should works

szpeti

No avatar

2008-05-20 18:56

Thx, for your answer.
Unfortunately it didn't work for me. I edited en_products.def.php. After edit a product and save, all my product's name, price, short description, availability and position was lost.
I had no backup, so I have a little work now... :)

treewood (OpenSolution)

Avatar: treewood

2008-05-21 08:40

szpeti - very strange. you should do backup database in every time you want to change something in database. try this modification in new database

Arturro777

Avatar: Arturro777

2008-05-21 13:27

Super że ten temat pojawił się właśnie teraz. Mam pytanie, czy jest jakiś sposób żeby odwrócić sposób sortowania wg pozycji. Aktualnie sortuje tak, że produkt z nr jeden jest wyświetlany jako pierwszy a z nr 2 jako drugi. Chciałbym ze względu na moich klientów zmienić to tak aby produkt z pozycją 1 był wyświatlany jako ostatni a najwyższa liczby dodatnia była na pierwszym miejscu jako najnowszy produkt w sklepie.

AK

beholder

Avatar: beholder

2008-05-21 14:17

Artutto777>>
please keep threads that started with English in English.

Arturro777

Avatar: Arturro777

2008-05-21 14:50

I'm sorry for this. I will try to translate it in English. I want to invert the way of sorting products. I mean that the products with highter position number can be displayed before the products with lower position number. Explanation: products(position nr2) is displayed first like newest product, product(position nr1) is displayed second because it is older products. I ask because people whom I've made a website using Qucik.Cart don't understand how properly use option "position".

AK

Makaron

Avatar: Makaron

2008-05-22 10:25

Nie istnieje możliwość wybierania np jak w tradycyjnym SQLu, że sortować ma malejąco czy rosnąco (DESC, ASC), ale przecież pozycje te można ustalać w panelu admina te pozycje i można dawać ujemne.

---

There isn't option to choose like in traditional SQL f.e. the type of sort (DESC, ASC) but You can in admin panel choose product position (even less than 0).

szpeti

No avatar

2008-05-22 15:52

Yes, it's working with the new database. Thanks again for your ansver. I'll keep in mind, to always do backup... :)

etemorom

Avatar: etemorom

2008-05-29 10:35

can i implement this to qc. 14?

etemorom

Avatar: etemorom

2008-09-06 07:49

can i implement this in qk 1.4 or 2.x ?

etemorom

Avatar: etemorom

2008-09-06 19:07

hellooo

Makaron

Avatar: Makaron

2008-09-08 10:29

Unfortunately arrays which are connected with sorting are only from version 3.0..

elcon

No avatar

2009-06-12 15:13

is possible to sort product by their dates of adding ?

luke

elcon

No avatar

2009-06-12 21:20

hellooo .. anybody here ?

luke

Makaron

Avatar: Makaron

2009-06-15 07:54

No because in products database there isn't date field.

Back to top
about us | contact