Merge pull request #1735 from amitsharma322/gli-3007

Fixed: Incorrect order status update when adding extra products to an order via the back-office
This commit is contained in:
Rohit Jain
2026-08-07 12:26:46 +05:30
committed by GitHub
2 changed files with 15 additions and 8 deletions

View File

@@ -677,7 +677,7 @@ abstract class PaymentModuleCore extends Module
$orderTotals[$order->id]['excl'] -= $used['excl'];
$cart_rules[$key]['remaining'] -= $used['excl'];
}
$order->addCartRule($cart_rule['obj']->id, $cart_rule['obj']->name, $values, 0, $cart_rule['obj']->free_shipping);
if ($id_order_state != Configuration::get('PS_OS_ERROR') && $id_order_state != Configuration::get('PS_OS_CANCELED') && !in_array($cart_rule['obj']->id, $cart_rule_used)) {