Log cart errors for anything that prevents you from checking out. Fix an error in the PayDriver template variables.

This commit is contained in:
Colin Kuskie 2010-04-28 11:48:07 -07:00
parent b316e84feb
commit 5ebd6864cc
2 changed files with 29 additions and 11 deletions

View file

@ -102,7 +102,7 @@ sub appendCartVariables {
my $credit = WebGUI::Shop::Credit->new($session, $cart->getPosUser->userId);
$var->{inShopCreditAvailable} = $credit->getSum;
$var->{inShopCreditDeduction} = $credit->calculateDeduction($var->{totalPrice});
$var->{totalPrice } = $self->formatCurrency($totalPrice + $var->{inShopCreditDeduction});
$var->{totalPrice } = $cart->formatCurrency($totalPrice + $var->{inShopCreditDeduction});
return $self;
}