cancel
Showing results for 
Search instead for 
Did you mean: 

Customize Customer Account Sales History

Customize Customer Account Sales History

So I am wanting to put something on the sales history or customer dashboard about if they don't see an order, to let us know. Want to do this because when guests place an order and then make an account afterwards it doesn't show in their history.

 

I think the file to make the change is vendor/magento/module-sales/view/frontend/templates/order/history.phtml

 

Is this correct? Obviously I will end up putting it in my theme, just want to make sure this is the correct file and that this is the best way of doing something like this.

 

Thanks!

2 REPLIES 2

Re: Customize Customer Account Sales History

Hello @letssewllc,

Greetings to you!

If you need to change in sales order then,
override vendor/magento/module-sales/view/frontend/templates/order/history.phtml
app/design/frontend/Your/theme/Magento_Sales/templates/order/history.phtml(if custom theme).
If you want to add any column in sales order you don't need to override file.
1. create the 'sales_order_history.xml nd add addtional column header to sales.order.history.extra.column.header block and render column data using sales.order.history.extra.container block
2. Create one phtml file and add content.

 

Hope this will help you to solve your issue.

If not, feel free to reach out to us.

 

Solved? Click KUDOS and accept it as a solution.

Thank you!

Re: Customize Customer Account Sales History