Hi,
If you want to organize the code in order to have something "code-best-practice", I will suggest you to use a plugin and some triggers like "onHikashopBeforeDisplayView" in order to call a special custom class and modify the $view content.
HikaMarket uses this trigger to modify some view elements which are displayed in the view afterwards (extraData->topEnd & others).
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.