/** * @param int $orderId * @return Sales\Order|false */ public function loadOrderById($orderId) { /** * @var $order Sales\Order */ $order = $this->orderFactory->create(); $order->load($orderId); if ($order->getId()) { return $order; } return false; }
/** * Review sync. * * @return mixed */ public function reviewSync() { //find orders to review and register campaign $this->orderFactory->create()->createReviewCampaigns(); //sync reviews $result = $this->reviewFactory->create()->sync(); return $result; }