Esempio n. 1
0
 /**
  * Get product category id
  *
  * @return integer
  */
 public function getCategoryId()
 {
     $categoryId = parent::getCategoryId();
     if ($this->getRootCategoryId() == $categoryId && $this->getProduct() && $this->getProduct()->getCategoryId()) {
         $categoryId = $this->getProduct()->getCategoryId();
     }
     return $categoryId;
 }