fixed undefined error in var $items if no products are in the shoppingcart
fixed transaction data not being sent to analytics