コード例 #1
0
ファイル: Product.php プロジェクト: kirkbauer2/kirkxc
 /**
  * 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();
 }
コード例 #2
0
ファイル: ProductReviews.php プロジェクト: kirkbauer2/kirkxc
 /**
  * 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()));
 }