protected function setMarketplaceByOtherListingProduct(Ess_M2ePro_Model_Listing_Other $otherListing) { if (!is_null($this->marketplace) && $this->marketplace->getId() == $otherListing->getMarketplaceId()) { return; } $this->marketplace = Mage::helper('M2ePro/Component_Amazon')->getObject('Marketplace', $otherListing->getMarketplaceId()); }