Merge pull request #648 from sumitwebkul/gli-1106

Resolved: Channel Manager Connector module issues and logo images changed
This commit is contained in:
Rohit Jain
2023-03-30 13:25:47 +05:30
committed by GitHub
4 changed files with 3 additions and 1 deletions

View File

@@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 568 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -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();