0

Hello Magento's,

How we can add column to Sales order history content into customer account.

enter image description here

can anyone help me please?

1
  • what will be the content for that column ? Please see my answer. – Pawan Nov 28 '18 at 16:12
0

You need to copy:

magento2Root/vendor/magento/module-sales/view/frontend/templates/order/history.phtml

to

app/design/frontend/{Package}/{theme}/Magento_Sales/templates/order/history.phtml

You can add custom column at above file where needed.

4
  • no the trick is without use history.phtml (no modification, no add, no override), i am looking for a solution with sales_order_history.xml and other configuration also needed. – Ben Mansour Marouan Nov 28 '18 at 16:15
  • you want to add column with xml ? – Pawan Nov 28 '18 at 16:17
  • <referenceBlock name="extra.column.header" template="MageTun_Solution::history.phtml"> <action method="setTemplate"> <argument name="template" xsi:type="string">MageTun_Solution::column.phtml</argument> </action> </referenceBlock>, i nedd to add a custom module and i use my owner template column.phtml but this it's not working. – Ben Mansour Marouan Nov 28 '18 at 16:35
  • did you find any alternative ? – Pawan Dec 2 '18 at 3:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.