I am facing problem between Magento 2 and M2Epro Ebay Listing Inventory Synchronisation. Inventory in not sync between M2epro ebay listing.
I have checked synchronisation settings and those shows correct. But still inventory is not correct on M2Epro Ebay Listing.
Now I am writing a code as per this tutorial to observe product and update inventory.
Github Location for M2Epro - https://github.com/m2epro/magento2-extension
But I am getting error that
Uncaught Error: Class 'Ess\M2ePro\Model\PublicServices\Product\ObjectChange' not found
Below is my code -
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$modelFactory = $objectManager->create('\Ess\M2ePro\Model\Factory');
$model = $modelFactory->create('PublicServices\Product\ObjectChange');
$model->observeProduct($id);
Can anyone help me to fix this.
Is there any other way to fix inventory synchronisation issue ?