$total = 0; foreach ($this->getProducts() as $product) { $total += $product['total']; } return $total;