diff --git a/modules/qlochannelmanagerconnector/classes/QcmcChannelManagerBooking.php b/modules/qlochannelmanagerconnector/classes/QcmcChannelManagerBooking.php index 6117757c8..4ecdbb62d 100644 --- a/modules/qlochannelmanagerconnector/classes/QcmcChannelManagerBooking.php +++ b/modules/qlochannelmanagerconnector/classes/QcmcChannelManagerBooking.php @@ -32,6 +32,8 @@ class QcmcChannelManagerBooking extends ObjectModel ), ); + const QCMC_CHANNEL_MANAGER_IP = '54.216.64.42'; + /** * Returns bookings created by api by channel manager * @param integer $idOrder : send id_order if you want booking of a particular order diff --git a/modules/qlochannelmanagerconnector/logo.gif b/modules/qlochannelmanagerconnector/logo.gif index 419a1dda4..7a8f9a140 100644 Binary files a/modules/qlochannelmanagerconnector/logo.gif and b/modules/qlochannelmanagerconnector/logo.gif differ diff --git a/modules/qlochannelmanagerconnector/logo.png b/modules/qlochannelmanagerconnector/logo.png index fbcd2981d..850e9ac01 100644 Binary files a/modules/qlochannelmanagerconnector/logo.png and b/modules/qlochannelmanagerconnector/logo.png differ diff --git a/modules/qlochannelmanagerconnector/qlochannelmanagerconnector.php b/modules/qlochannelmanagerconnector/qlochannelmanagerconnector.php index 0b5c65cfd..ebea1b9ad 100644 --- a/modules/qlochannelmanagerconnector/qlochannelmanagerconnector.php +++ b/modules/qlochannelmanagerconnector/qlochannelmanagerconnector.php @@ -72,7 +72,7 @@ class QloChannelManagerConnector extends Module public function hookActionValidateOrder($data) { // If the order request is coming from channel manager ip then only enter in database - if (Tools::getRemoteAddr() != '54.216.64.42') { + if (Tools::getRemoteAddr() == QcmcChannelManagerBooking::QCMC_CHANNEL_MANAGER_IP) { $order = $data['order']; if (!QcmcChannelManagerBooking::getChannelManagerBookings($order->id)) { $objChannelManagerBooking = new QcmcChannelManagerBooking();