Hi,
Like that I would recommend you to use the plugin "group after purchase" so the user group can change by buying a special product in your store.
But this feature won't work on the same order, because the user group will change after the order ; it will provide you the same feature but in two steps (two orders).
If you want to load the full cart, you can use
$cartClass = hikashop_get('class.cart');
$cart = $cartClass->loadFullCart();
Instead of the function "hikashop_product_price_for_quantity_in_cart" you can use a classical HikaShop plugin and the trigger "onBeforeCalculateProductPriceForQuantity".
The function give you the product object with his prices and you can modify it like you want.
Regards,