public function getCartCountItems()
{
if (empty($this->fullitems)) {
$this->fullitems = $this->getFullItems();
// get them from parent
}
$count = 0;
if (!empty($this->fullitems[0])) {
foreach ($this->fullitems[0] as $k => $v) {
if (isset($v['quantity']) && (int) $v['quantity'] > 0) {
$count += (int) $v['quantity'];
}
}
}
return $count;
}