make a copy of normal
This commit is contained in:
parent
ecc113176e
commit
a76fc98f19
1 changed files with 2 additions and 2 deletions
|
|
@ -359,7 +359,7 @@ sub www_checkoutSubmit {
|
||||||
$plugin = WebGUI::Commerce::Payment->load($session, $session->scratch->get('paymentGateway'));
|
$plugin = WebGUI::Commerce::Payment->load($session, $session->scratch->get('paymentGateway'));
|
||||||
$shoppingCart = WebGUI::Commerce::ShoppingCart->new($session);
|
$shoppingCart = WebGUI::Commerce::ShoppingCart->new($session);
|
||||||
($normal, $recurring) = $shoppingCart->getItems;
|
($normal, $recurring) = $shoppingCart->getItems;
|
||||||
|
my @copyOfNormal = @$normal;
|
||||||
# Check if shoppingcart contains any items. If not the user probably clicked reload, so we redirect to the current page.
|
# Check if shoppingcart contains any items. If not the user probably clicked reload, so we redirect to the current page.
|
||||||
unless (@$normal || @$recurring) {
|
unless (@$normal || @$recurring) {
|
||||||
$session->http->setRedirect($session->url->page);
|
$session->http->setRedirect($session->url->page);
|
||||||
|
|
@ -394,7 +394,7 @@ sub www_checkoutSubmit {
|
||||||
# situations.
|
# situations.
|
||||||
$amount += ($_->{item}->{priceLineItem})
|
$amount += ($_->{item}->{priceLineItem})
|
||||||
# pass in the quantity and the normal items in the cart.
|
# pass in the quantity and the normal items in the cart.
|
||||||
?($_->{item}->priceLineItem($_->{quantity},$normal))
|
?($_->{item}->priceLineItem($_->{quantity},\@copyOfNormal))
|
||||||
:($_->{item}->price * $_->{quantity});
|
:($_->{item}->price * $_->{quantity});
|
||||||
$var->{purchaseDescription} .= $_->{quantity}.' x '.$_->{item}->name.'<br />';
|
$var->{purchaseDescription} .= $_->{quantity}.' x '.$_->{item}->name.'<br />';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue