Ejemplo n.º 1
0
 public function checkProductHasAttributeTab($category_id)
 {
     $category_ids = $this->getAllTopLevelCategoryIds($category_id);
     $cat_arr = explode(',', $category_ids);
     if (count($cat_arr) > 0) {
         $a_count = ProductCategoryAttributes::whereIn('category_id', $cat_arr)->count();
         if ($a_count > 0) {
             return true;
         }
     }
     return false;
 }