I have my own template files and when i try to view an order i get the wrong permalink from the botton


but it should be /view-order/2267

How can i change the php to generate the right one?

Read more here: get wrong permalink on woocommerce account pages


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: