protected function addBestOfferData(Ess_M2ePro_Model_ListingsProducts $listingProduct, array &$requestData) { if ($listingProduct->isListingTypeFixed()) { $requestData['bestoffer_mode'] = $listingProduct->getSellingFormatTemplate()->isBestOfferEnabled(); if ($requestData['bestoffer_mode']) { $requestData['bestoffer_accept_price'] = $listingProduct->getBestOfferAcceptPrice(); $requestData['bestoffer_reject_price'] = $listingProduct->getBestOfferRejectPrice(); } } }