View Single Post
  #8  
Old 06-18-2004, 03:12 PM
 
bluesunomi bluesunomi is offline
 

Member
  
Join Date: Feb 2004
Location: Oxford, UK
Posts: 22
 

Default

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);
Reply With Quote