|
|
|
|
|
|
|
|
|
|
|
|
|
|
$reductionCartsArray = [] ; |
|
|
$reductionCartsArray = [] ; |
|
|
foreach($reductionCarts as $reductionCart) { |
|
|
foreach($reductionCarts as $reductionCart) { |
|
|
dump($reductionCart); |
|
|
|
|
|
if($this->orderUtils->isReductionCartMatchWithUser($reductionCart, $user) |
|
|
if($this->orderUtils->isReductionCartMatchWithUser($reductionCart, $user) |
|
|
&& $this->orderUtils->isReductionCartMatchWithGroupUser($reductionCart, $user) |
|
|
&& $this->orderUtils->isReductionCartMatchWithGroupUser($reductionCart, $user) |
|
|
&& $this->orderUtils->countReductionCartAvailableForUser($reductionCart, $user) |
|
|
&& $this->orderUtils->countReductionCartAvailableForUser($reductionCart, $user) |