Merge remote branch 'upstream/WebGUI8' into 8-merge
This commit is contained in:
commit
3ae21d6349
6 changed files with 517 additions and 309 deletions
|
|
@ -985,7 +985,8 @@ sub www_checkout {
|
|||
##Handle rounding errors, and checkout immediately if the amount is 0 since
|
||||
##at least the ITransact driver won't accept $0 checkout.
|
||||
if (sprintf('%.2f', $total + $self->calculateShopCreditDeduction($total)) eq '0.00') {
|
||||
my $transaction = WebGUI::Shop::Transaction->create($session, {cart => $self});
|
||||
my $transaction = WebGUI::Shop::Transaction->new({session => $session, cart => $self});
|
||||
$transaction->write;
|
||||
$transaction->completePurchase('zero', 'success', 'success');
|
||||
$self->onCompletePurchase;
|
||||
$transaction->sendNotifications();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue