Format the subtotal variable in the Payment driver to 2 decimal places. Fixes bug #11813
This commit is contained in:
parent
55e6284dd1
commit
f65ae74e54
3 changed files with 61 additions and 2 deletions
|
|
@ -94,7 +94,7 @@ sub appendCartVariables {
|
|||
$var ||= {};
|
||||
my $cart = $self->getCart;
|
||||
$var->{shippableItemsInCart} = $cart->requiresShipping;
|
||||
$var->{subtotal} = $cart->calculateSubtotal;
|
||||
$var->{subtotal} = $cart->formatCurrency($cart->calculateSubtotal);
|
||||
$var->{shipping} = $cart->calculateShipping;
|
||||
$var->{taxes} = $cart->calculateTaxes;
|
||||
my $totalPrice = $var->{subtotal} + $var->{shipping} + $var->{taxes};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue