/** * Postprocess category. * * @param string $command Command * @param int $categoryUid Category uid * * @return void */ protected function postProcessCategory($command, $categoryUid) { if ($command == 'delete') { $this->deleteChildCategoriesProductsArticlesPricesOfCategory($categoryUid); } elseif ($command == 'copy') { $newCategoryUid = $this->pObj->copyMappingArray['tx_commerce_categories'][$categoryUid]; $locale = $this->getLocale(); $this->belib->copyCategoriesByCategory($newCategoryUid, $categoryUid, $locale); $this->belib->copyProductsByCategory($newCategoryUid, $categoryUid, $locale); } }