Jump to content

Vartotojų užsakymų rikiavimas panelėje

Recommended Posts

Sveiki, noriu pakeisti vartotojų prekių rikiavimą krepselyje pagal kainą.


parasius kodą Orders.php (clasess/order/Order.php) 552 eilutę, admin panelėje niekas nepasikeičia.code.png.87e9fb3c8e36c1d53e0f5c408dff1e7a.png

Kur reikėtų ieškoti problemos? Bandžiau įkelti šią funkciją į override/clases/orders/Order.php, tačiau nieko.

Share this post

Link to post
Share on other sites

adminordercontroller.php ->  protected function getProducts($order) prieš return įdėk  array_multisort(array_column($products, "price"), SORT_ASC, SORT_NUMERIC, $products);

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More