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!

3 REPLIES 3

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

Re: Customize Customer Account Sales History

It's always cool to see how folks are diving into customization like this. CRM automation sounds like the way to go for streamlining customer interactions and making sure everything runs smoothly.

In my experience, integrating crm automation into Magento can really boost efficiency. It helps in managing customer data, tracking interactions, and ultimately improving customer relationships. Plus, having a tailored sales history view can be a game-changer for personalizing customer experiences.