foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/admin_products_search_and_edit.php']['adminProductsSearchAndEditActionProductPostProc'] as $funcRef) { \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this); } } // custom page hook that can be controlled by third-party plugin eof if (count($this->post['selectedProducts'])) { switch ($this->post['tx_multishop_pi1']['action']) { case 'delete': foreach ($this->post['selectedProducts'] as $old_categories_id => $array) { foreach ($array as $pid) { mslib_befe::deleteProduct($pid, $old_categories_id); } } break; case 'move': if (is_numeric($this->post['tx_multishop_pi1']['target_categories_id']) and mslib_befe::canContainProducts($this->post['tx_multishop_pi1']['target_categories_id'])) { foreach ($this->post['selectedProducts'] as $old_categories_id => $array) { foreach ($array as $pid) { $filter = array(); $filter[] = 'products_id=' . $pid; if (mslib_befe::ifExists('1', 'tx_multishop_products', 'imported_product', $filter)) { // lock changed columns mslib_befe::updateImportedProductsLockedFields($pid, 'tx_multishop_products_to_categories', array('categories_id' => $this->post['tx_multishop_pi1']['target_categories_id'])); } mslib_befe::moveProduct($pid, $this->post['tx_multishop_pi1']['target_categories_id'], $old_categories_id); } } } break; case 'duplicate': foreach ($this->post['selectedProducts'] as $old_categories_id => $array) {