• Register
Plug-in Tutorial Build an EC-CUBE plug-in

Top Commentators

114

1

EC Mike

SHOGUNSHOGUN

32

2

hrbabu

SAMURAISAMURAI

29

3

Sumant Jha

SAMURAISAMURAI

29

4

justcubed

SAMURAISAMURAI

21

5

Ashok Kafle

SAMURAISAMURAI

21

6

shahith

SAMURAISAMURAI

14

7

Jeemusu

KABUKIKABUKI

14

8

Yangsin

KABUKIKABUKI

9

9

Zaw Hlaing Bwar

GEISYAGEISYA

8

10

Fei Liu

GEISYAGEISYA

Ranking Key

  • FUJISANFUJISAN1,000+ posts
  • SAKURASAKURA500+ posts
  • SHOGUNSHOGUN100+ posts
  • NINJYANINJYA50+ posts
  • SAMURAISAMURAI20+ posts
  • KABUKIKABUKI10+ posts
  • GEISYAGEISYALess than 10 posts

how to arrange buy_total in ASC ORDER in the admin page Customer

0 votes
hi I want to sort the list of customer by buy_total in ASC order but when i click the search button it always arrange by id in ASC order. I found the code $this->setOrder('customer_id DESC'); in SC_CustomerList.php I change it to $this->setOrder('buy_total DESC'); but nothings happen. :(
asked 2013-10-28 by krishfran (320 points) KABUKIKABUKI

1 Answer

0 votes
Hello Krishfran,

That should work. Have you tried outputting the sql statement? If you var_dump the final string you should be able to check full sql statement.  Also make sure buy_total exists.

Let me know if you still have issues sorting that query.

Thanks agian,

Mike
answered 2013-10-29 by EC Mike (6,360 points) SHOGUNSHOGUN
...