I just want to know the syntax of adding the quantity using foreach.
Any help is greatly appreciable.
Here is the code what I do so far:
$qproducts = '0';
foreach ($this->cart->getProducts() as $product) {
$qproducts .= $product['quantity'];
}
$this->data['pquantity'] = $qproducts;