/** * Order placement is success * * @return void */ public function processSucceed($doCloneProfile = true) { $this->saveProductStats(\XLite\Module\CDev\ProductAdvisor\Main::getProductIds()); parent::processSucceed($doCloneProfile); }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { $result = \XLite\Core\Config::getInstance()->CDev->ProductAdvisor->rv_enabled && \XLite\Module\CDev\ProductAdvisor\Main::getProductIds() && parent::isVisible(); if ($result) { if (!\XLite\Core\CMSConnector::isCMSStarted()) { if (self::WIDGET_TYPE_SIDEBAR == $this->getParam(self::PARAM_WIDGET_TYPE)) { $result = in_array($this->viewListName, array('sidebar.second', 'sidebar.single')); } elseif (self::WIDGET_TYPE_CENTER == $this->getParam(self::PARAM_WIDGET_TYPE)) { $result = 'center.bottom' == $this->viewListName; } } } return $result; }