How we can add column to Sales order history content into customer account.
What are methods for add a column to sales_order_history page
without editing view/frontend/templates/order/history.phtml
?
How we can add column to Sales order history content into customer account.
What are methods for add a column to sales_order_history page
without editing view/frontend/templates/order/history.phtml
?
3
Answers
You don’t need to touch view/frontend/templates/order/history.phtml template file to add aditional column into customer sales order history page.
copy layout view/frontend/layout/sales_order_history.xml to your theme and add addtional column header to sales.order.history.extra.column.header block and render column data using sales.order.history.extra.container block.
You have all set now.
I have an easier and shorter solution(date column in the example):
1- Create in your theme/extension into layout folder-> sales_order_history.xml and copy:
2- Create the template for the data in templates/date/data.phtml and copy: