Post by hilmikeltin » Wed Mar 13, 2019 4:30 am

i want to sort ordered products from A to Z. admin can see the products in order, and seect them from the shelf. it is described admin orders.php as array. should i sort the in controller/order.php or model/order.php. how can i sort array?

New member

Posts

Joined
Thu Nov 23, 2017 6:17 am

Post by MarketInSG » Wed Mar 13, 2019 12:32 pm

you will need to modify the SQL in admin/model/sale/order.php getOrderProducts by adding the below to the query

Code: Select all

ORDER BY name


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by paulfeakins » Wed Mar 13, 2019 7:58 pm

MarketInSG wrote:
Wed Mar 13, 2019 12:32 pm
you will need to modify the SQL in admin/model/sale/order.php
You should do this with vQmod or OCMOD really.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by hilmikeltin » Thu Mar 14, 2019 2:39 am

thx MarketInSG, worked perfect and easy. regards

New member

Posts

Joined
Thu Nov 23, 2017 6:17 am

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore
Who is online

Users browsing this forum: Baidu [Spider] and 32 guests