From 45eeafa1f7190aa0d264497633b0237a15bb0be9 Mon Sep 17 00:00:00 2001 From: Mihael Date: Thu, 18 Sep 2025 12:07:12 +0200 Subject: [PATCH] validation - change order status ID for default Prepaid --- controllers/front/validation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/front/validation.php b/controllers/front/validation.php index 558910a..d9b3c75 100644 --- a/controllers/front/validation.php +++ b/controllers/front/validation.php @@ -37,10 +37,10 @@ class B2BPaymentsValidationModuleFrontController extends ModuleFrontController $b2b_postpaid_group_id = (int)Configuration::get('B2BPAYMENTS_POSTPAID_GROUP'); $b2b_prepaid_group_id = (int)Configuration::get('B2BPAYMENTS_PREPAID_GROUP'); //$payment_status = Configuration::get('PS_OS_PAYMENT'); // Default: Payment accepted - $payment_status = Configuration::get('PS_OS_BANKWIRE'); // Default for Prepaid: Awaiting payment via IBAN + $payment_status = 16; // Default for Prepaid (Avans) - custom status ID 16 if ($this->module->isDefaultCustomerGroup($this->context->customer->id, $b2b_postpaid_group_id) && $this->module->isCustomerInGroup($this->context->customer->id, $b2b_postpaid_group_id)) { //$payment_status = Configuration::get('PS_OS_PREPARATION'); // Order processing in progress. Adjust as needed. - $payment_status = 15; // Fod Postpaid: Awaiting to process order (custom status ID: 15) + $payment_status = 15; // For Postpaid (Odgoda) - custom status ID 15 $payment_method = $this->module->b2b_postpaid_payment_name; } else if ($this->module->isDefaultCustomerGroup($this->context->customer->id, $b2b_prepaid_group_id) && $this->module->isCustomerInGroup($this->context->customer->id, $b2b_prepaid_group_id)) { //Payment Status Already fine.