cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace in Url "order_id" number and insert the Increment ID value instead?

How to replace in Url "order_id" number and insert the Increment ID value instead?

In Magento when customers clicks on "View my order" tub the Url will be:
domain/sales/order/view/order_id/379/

when customer clicks on "Print Order" tub the Url will be:
domain/sales/order/print/order_id/379/

By looking at "379" customer can see the number of actual orders site has. If the number is low, it does not look good.

 

The "increment_id" is lets say "1000515616"

 

Question:
Which controller is responsible for that and How to modify the controller so when buyer clicks on "View my order" or "Print Order" the Url will look like this:

 

domain/sales/order/view/order_id/1000515616/
domain/sales/order/print/order_id/1000515616/   (instead of "379")

 

(I use Magento 1.9.2.2)


Thanks !