Esempio n. 1
0
 /**
  * Maps the category names into IDs
  */
 protected function _mapCategoryIds($categories, $categoryIds)
 {
     foreach ($categories as $catPath) {
         $catId = \Creatuity\Magento\Util\CategoryUtil::getCategoryIdByPath($catPath);
         if ($catId && !in_array($catId, $categoryIds)) {
             $categoryIds[] = $catId;
         }
     }
     return $categoryIds;
 }