[Skip to main content](#vessel-content)

#   How to adjust display order of Product list when Viewing a order

##

- **[speck2900](/forum/user/28879-speck2900 "View speck2900's Profile")**
- [![speck2900's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28879-speck2900 "View speck2900's Profile") Topic Author
- [ Offline](/forum/user/28879-speck2900)

Less More

- Posts: 21
- Thank you received: 1
-
-

8 years 1 month ago [\#298495](#298495) by [speck2900](/forum/user/28879-speck2900 "View speck2900's Profile")  *[How to adjust display order of Product list when Viewing a order](/forum/35-orders-management/895827-how-to-adjust-display-order-of-product-list-when-viewing-a-order#298495 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12 -- PHP version -- : 5.6.25  Hello,  I would like to change the display order of the Product List when you are displaying a order that has been placed. I would like to have the products display in order of their product&#95;code. I am sure the adjustment can be done in the Display &gt; Views section but I am not 100% on which file to select to edit and what code to adjust.")* was created by *[speck2900](/forum/user/28879-speck2900 "View speck2900's Profile")*

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.12
-- PHP version -- : 5.6.25

Hello,

I would like to change the display order of the Product List when you are displaying a order that has been placed. I would like to have the products display in order of their product_code. I am sure the adjustment can be done in the Display &gt; Views section but I am not 100% on which file to select to edit and what code to adjust.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5NTgyNy1ob3ctdG8tYWRqdXN0LWRpc3BsYXktb3JkZXItb2YtcHJvZHVjdC1saXN0LXdoZW4tdmlld2luZy1hLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

8 years 1 month ago [\#298516](#298516) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to adjust display order of Product list when Viewing a order](/forum/35-orders-management/895827-how-to-adjust-display-order-of-product-list-when-viewing-a-order#298516 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12 -- PHP version -- : 5.6.25  Hello,  I would like to change the display order of the Product List when you are displaying a order that has been placed. I would like to have the products display in order of their product&#95;code. I am sure the adjustment can be done in the Display &gt; Views section but I am not 100% on which file to select to edit and what code to adjust.")*

Hi,

You need to edit the file "show" of the view "order" for your frontend template via the menu Display&gt;Views.
You'll want to add your custom PHP code at the beginning of the file in order to reorder the products in the array $this-&gt;order-&gt;products

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5NTgyNy1ob3ctdG8tYWRqdXN0LWRpc3BsYXktb3JkZXItb2YtcHJvZHVjdC1saXN0LXdoZW4tdmlld2luZy1hLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
