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
    Commented Nov 28, 2018 at 16:12

1 Answer 1

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. Commented Nov 28, 2018 at 16:15
  • you want to add column with xml ?
    – Pawan
    Commented Nov 28, 2018 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. Commented Nov 28, 2018 at 16:35
  • did you find any alternative ?
    – Pawan
    Commented Dec 2, 2018 at 3:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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