Skip to content

Commit 6f1cdab

Browse files
update
1 parent 1a42084 commit 6f1cdab

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Model/Push.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,20 +1600,16 @@ protected function updateTransactionIsClosed($order)
16001600
$order->setState(Order::STATE_PROCESSING);
16011601
$order->setStatus(Order::STATE_PROCESSING);
16021602

1603-
// If some items in the order got canceled (refunded or otherwise),
1604-
// and you want to reopen them as well, set qty_canceled back to 0:
16051603
foreach ($order->getAllItems() as $item) {
16061604
if ($item->getQtyCanceled() > 0) {
16071605
$item->setQtyCanceled(0);
16081606
}
16091607
}
16101608

1611-
// Add a comment so you know it was re-opened via Klarna push:
16121609
$order->addStatusHistoryComment(
16131610
__('Order was re-opened from canceled state after a successful Klarna push.')
16141611
);
16151612

1616-
// Finally, save your changes to the order:
16171613
$order->save();
16181614
}
16191615
}

0 commit comments

Comments
 (0)