update:
The code sits in cart.php, currency.php (at two places), discount.php.
I named discounts and groups the same: "Discount A", "Discount B", "Discount C".
Then the codeneeds to join in additional tables usergroup and user_usergroup_map.
Sample:
// hactic.com discount 1/4 begin
$user = JFactory::getUser();
$userId = $user->get( 'id' );
// $filters = array('discount_type=\'coupon\'','discount_published=1','discount_auto_load=1');
$filters = array('discount_type=\'coupon\'','discount_published=1','discount_auto_load=1',
'( d.discount_code=ug.title )',
'( ugm.user_id='.$userId.' )',
'( ugm.group_id=ug.id )');
hikashop_addACLFilters($filters,'discount_access');
// $query = 'SELECT * FROM '.hikashop_table('discount').' WHERE '.implode(' AND ',$filters).' ORDER BY discount_minimum_order DESC, discount_minimum_products DESC';
$query = 'SELECT * FROM '.hikashop_table('discount').' d, '.hikashop_table('usergroup', false).' ug,'.hikashop_table('user_usergroup_map', false).' ugm WHERE '.implode(' AND ',$filters).' ORDER BY discount_minimum_order DESC, discount_minimum_products DESC';
// hactic.com discount 1/4 end
best regards
Klaus