Open orders count in orders details

Hello, i’m new to cs-cart coding and trying to add custom feild that will display counter of open orders of the customer, in his order details page
Maybe I am using a wrong hook?
Google Drive link: https://drive.google.com/file/d/1LPRvBGB8YwXAu24YCAtTWo5E5yHUi6O5/view?usp=sharing
Thank you

Hi!

Sorry, but the file at the link returns 404. Could you please add some details or provide a valid link?