Hi,
With HikaShop 2.2.0 and newer you do not require to make any override because there is a "badge quantity" option.
So you can configure the "badge quantity" option for your badges and the loading of the badge for the product should work properly.
But, there is no need to make any override, you can remove the override you made.
If the "badge quantity" option does not work properly, we can see that but the part of this thread which have 4 months is out of context now.
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.