Add Additional Information Column To Orders View

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #110904

Hi

When you go to Orders->Orders Hikashop displays a list of the orders with the following columns #, Order Number, Customer, Payment Method, Date, Last Modified, Order Status, Total, Partner, ID. Is there anyway off adding a column here by editing a file in Display->View? I want to add the additional information column that is displayed when you view an invoice (under the history section) of an order because that contains the paypal payment id. I really want to be able to view that information without having to enter each order so if I can add it to the list of columns it be great.

Please can you advise which file to edit and what to add to that file in Display->Views

Thanks

Edit
I found the file to edit. Its the backend file for order->listing. I just need to know what code to insert to call the information I require

Last edit: 11 years 4 months ago by lionelmnr. Reason: Found File To Edit

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

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #110910

Hi,

Can you tell me what do you exactly want to display through your order listing ?

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

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #110913

Hi Mohamed

Sure. When you view an invoice for an order there is a history section at the bottom. There is a information column. In that column the paypal payment I'd is displayed. I want to add that to the listing.

Thanks

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 4 months ago #110954

Hi,

The history data is stored in the special table (hikashop_history).
So you have a make a SQL request for your orders in the listing in order to load the history data for these orders and retrieve the paypal id (if there) to assign it to the orders.
It is not a small code.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum