File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -1600,20 +1600,16 @@ protected function updateTransactionIsClosed($order)
1600
1600
$ order ->setState (Order::STATE_PROCESSING );
1601
1601
$ order ->setStatus (Order::STATE_PROCESSING );
1602
1602
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:
1605
1603
foreach ($ order ->getAllItems () as $ item ) {
1606
1604
if ($ item ->getQtyCanceled () > 0 ) {
1607
1605
$ item ->setQtyCanceled (0 );
1608
1606
}
1609
1607
}
1610
1608
1611
- // Add a comment so you know it was re-opened via Klarna push:
1612
1609
$ order ->addStatusHistoryComment (
1613
1610
__ ('Order was re-opened from canceled state after a successful Klarna push. ' )
1614
1611
);
1615
1612
1616
- // Finally, save your changes to the order:
1617
1613
$ order ->save ();
1618
1614
}
1619
1615
}
You can’t perform that action at this time.
0 commit comments