} | } | ||||
foreach ($orderShop->getOrderProducts() as $orderProduct) { | foreach ($orderShop->getOrderProducts() as $orderProduct) { | ||||
if ($this->orderProductSolver->compare($orderProduct, $orderProductAdd)) { | if ($this->orderProductSolver->compare($orderProduct, $orderProductAdd)) { | ||||
$orderProduct->setQuantityOrder( | $orderProduct->setQuantityOrder( | ||||
$orderProduct->getQuantityOrder() + $orderProductAdd->getQuantityOrder() | $orderProduct->getQuantityOrder() + $orderProductAdd->getQuantityOrder() | ||||
); | ); |