$basketData =
$this->db->
fetchAll( 'SELECT id, modus, quantity
FROM s_order_basket
WHERE sessionID = ?',
[$this->session->
get('sessionId'
)] );
$cartItems =
[];
foreach ($basketData as $basketContent) { if (empty($basketContent['modus'
])) { $cartItem =
new CartItemStruct();
$cartItem->
setId((int) $basketContent['id'
]);
$cartItem->
setQuantity((int) $basketContent['quantity'
]);
$cartItems[] =
$cartItem;
} } $this->
updateCartItems($cartItems);
// Check, if we have some free products for the client
$this->
sInsertPremium();
// Delete previous given discounts
$premiumShipping =
$this->config->
get('sPREMIUMSHIPPIUNG'
);
if (empty($premiumShipping)) {