/** * Save requested product ID in the recently viewed statistics * * @return void */ public function handleRequest() { if (\XLite\Core\Config::getInstance()->CDev->ProductAdvisor->rv_enabled) { \XLite\Module\CDev\ProductAdvisor\Main::saveProductIds($this->getProductId()); } return parent::handleRequest(); }
/** * Defines the common data for JS * * @return array */ public function defineCommonJSData() { return array_merge(parent::defineCommonJSData(), array('product_id' => $this->getProductId(), 'category_id' => $this->getCategoryId())); }