Hi,
If you ask your question in the HikaShop forum, the HikaShop support team will answer you.
But they don't have any knowledge about HikaMarket or how it works. So their answers won't help you at all.
So, because you customize the view "HikaMarket - ordermarket-invoice", you are working on an HikaMarket view.
And Mohamed didn't notice this point, thought that you were on an HikaShop invoice view and gave you a non-working code.
That's why, I really prefer that you put your question in the HikaMarket forum so I and only myself, will manage the thread and will be able to give you code which will really work for HikaMarket.
The HikaMarket stuff should be in the HikaMarket forum ; to be manage correctly and provide a good support.
Regards
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.