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

  • Posts: 21
  • Thank you received: 1
  • Hikashop Business
6 years 1 month ago #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_code. I am sure the adjustment can be done in the Display > Views section but I am not 100% on which file to select to edit and what code to adjust.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 1 month ago #298516

Hi,

You need to edit the file "show" of the view "order" for your frontend template via the menu Display>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->order->products

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum