Recalculate totals based on shipping, now that it works correctly.

This commit is contained in:
Colin Kuskie 2010-04-26 16:15:45 -07:00
parent a98484dbcb
commit fe7f3e0cb2
2 changed files with 1 additions and 1 deletions

View file

@ -1019,7 +1019,7 @@ sub www_view {
$var{posUserId} = $posUser->userId;
# calculate price adjusted for in-store credit
$var{totalPrice} = $var{subtotalPrice}; # + $var{shippingPrice} + $var{tax};
$var{totalPrice} = $var{subtotalPrice} + $var{shippingPrice} + $var{tax};
my $credit = WebGUI::Shop::Credit->new($session, $posUser->userId);
$var{ inShopCreditAvailable } = $credit->getSum;
$var{ inShopCreditDeduction } = $credit->calculateDeduction($var{totalPrice});