add occupancy status in order

This commit is contained in:
Shreesh Arora
2022-12-20 10:27:34 +05:30
parent 8519f8ae0b
commit a70beda4a8

View File

@@ -354,9 +354,13 @@ abstract class PaymentModuleCore extends Module
PrestaShopLogger::addLog('PaymentModule::validateOrder - Order is about to be added', 1, null, 'Cart', (int)$id_cart, true);
}
// if (Configuration::get('PS_FRONT_SEARCH_TYPE') == HotelBookingDetail::SEARCH_TYPE_OWS) {
// $order->occupnacy_wise_booking = 1;
// }
if (isset($this->context->employee->id)) {
if (Configuration::get('PS_BACKOFFICE_OCCUPANCY_WISE_BOOKING'))
$order->occupnacy_wise_booking = 1;
} else {
if (Configuration::get('PS_FRONT_OCCUPANCY_WISE_BOOKING'))
$order->occupnacy_wise_booking = 1;
}
// advance payment information
$order->is_advance_payment = $this->context->cart->is_advance_payment;