validation - change order status ID for default Prepaid

This commit is contained in:
Mihael
2025-09-18 12:07:12 +02:00
parent 5227a50e01
commit 45eeafa1f7

View File

@@ -37,10 +37,10 @@ class B2BPaymentsValidationModuleFrontController extends ModuleFrontController
$b2b_postpaid_group_id = (int)Configuration::get('B2BPAYMENTS_POSTPAID_GROUP'); $b2b_postpaid_group_id = (int)Configuration::get('B2BPAYMENTS_POSTPAID_GROUP');
$b2b_prepaid_group_id = (int)Configuration::get('B2BPAYMENTS_PREPAID_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_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)) { 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 = 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; $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)) { } 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. //Payment Status Already fine.