Exemplo n.º 1
0
         foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/includes/admin_edit_product.php']['insertProductPostHook'] as $funcRef) {
             \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
         }
     }
     // custom hook that can be controlled by third-party plugin eof
 }
 if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/admin_edit_product.php']['saveProductPostHook'])) {
     $params = array('prodid' => $prodid);
     foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/admin_edit_product.php']['saveProductPostHook'] as $funcRef) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
     }
 }
 // set default Crumpath
 mslib_befe::setProductDefaultCrumpath($prodid);
 // lets notify plugin that we have update action in product
 tx_mslib_catalog::productsUpdateNotifierForPlugin($this->post, $prodid);
 // custom hook that can be controlled by third-party plugin eof
 if ($this->ms['MODULES']['FLAT_DATABASE']) {
     // if the flat database module is enabled we have to sync the changes to the flat table
     mslib_befe::convertProductToFlat($prodid);
 }
 if (isset($this->post['SaveClose']) || isset($this->post['save_as_new'])) {
     if (strpos($this->post['tx_multishop_pi1']['referrer'], 'action=edit_product') === false && strpos($this->post['tx_multishop_pi1']['referrer'], 'action=add_product') === false && $this->post['tx_multishop_pi1']['referrer']) {
         header("Location: " . $this->post['tx_multishop_pi1']['referrer']);
         exit;
     } else {
         header("Location: " . $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_products_search_and_edit', 1));
         exit;
     }
 } else {
     if (isset($this->post['Submit'])) {
Exemplo n.º 2
0
                 }
             }
         }
     }
 }
 // update flat database
 if ($this->ms['MODULES']['FLAT_DATABASE'] or $this->ms['MODULES']['GLOBAL_MODULES']['FLAT_DATABASE']) {
     if (isset($item['products_status']) and $item['products_status'] == '0' and is_numeric($products_id)) {
         $query = $GLOBALS['TYPO3_DB']->DELETEquery('tx_multishop_products_flat', 'products_id=' . $products_id);
         $res = $GLOBALS['TYPO3_DB']->sql_query($query);
     } else {
         mslib_befe::convertProductToFlat($products_id, 'tx_multishop_products_flat');
     }
 }
 // lets notify plugin that we have update action in product
 tx_mslib_catalog::productsUpdateNotifierForPlugin($item);
 // update flat database eof
 if ($item['added_products_id']) {
     // custom hook that can be controlled by third-party plugin
     if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/admin_import.php']['insertProductPostHook'])) {
         $params = array('products_id' => $item['added_products_id'], 'item' => &$item, 'prefix_source_name' => $this->post['prefix_source_name']);
         foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/admin_import.php']['insertProductPostHook'] as $funcRef) {
             \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
         }
     }
     // custom hook that can be controlled by third-party plugin eof
     // set default Crumpath
     mslib_befe::setProductDefaultCrumpath($item['added_products_id']);
 } elseif ($item['updated_products_id']) {
     // custom hook that can be controlled by third-party plugin
     if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/admin_import.php']['updateProductPostHook'])) {