Hi,
This doesn't include gift vouchers in the total no products though, so you need an additional line after the loop ....
after ...
Code:
if(!empty($cart["products"])) {
foreach($cart["products"] as $key => $value) {
$MINICART["total_items"] += $value["amount"];
}
}
Put in this line to fix this ....
Code:
$MINICART["total_items"] += ((!empty($cart["giftcerts"]) and is_array($cart["giftcerts"]))?count($cart["giftcerts"]):0);