private function filterSubShopVoucher($voucherDetails) { $sErrorMessages =
[];
if (!
empty($voucherDetails['subshopID'
])) { if ($this->contextService->
getShopContext()->
getShop()->
getId() !==
(int) $voucherDetails['subshopID'
]) { $sErrorMessages[] =
$this->snippetManager->
getNamespace('frontend/basket/internalMessages'
)->
get( 'VoucherFailureNotFound',
'Voucher could not be found or is not valid anymore'
);
} } return $sErrorMessages;
} /**
* Filter voucher by customer group
*
* @param int $userId The current user id
* @param array $voucherDetails The voucher details
*
* @return array Messages for detected errors
*/