Beispiel #1
0
                 $params = array('orders_id' => &$this->post['tx_multishop_pi1']['orders_id'], 'orders_status_id' => $this->post['tx_multishop_pi1']['orders_status_id'], 'returnOutput' => &$returnOutput);
                 foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/ajax_pages/core.php']['adminUpdateOrdersStatus'] as $funcRef) {
                     \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
                 }
             }
             // hook eof
             mslib_befe::updateOrderStatus($this->post['tx_multishop_pi1']['orders_id'], $this->post['tx_multishop_pi1']['orders_status_id'], 1);
             echo $returnOutput;
         }
     }
     exit;
     break;
 case 'admin_update_order_product_status':
     if ($this->ADMIN_USER) {
         if (is_numeric($this->post['tx_multishop_pi1']['orders_id']) and is_numeric($this->post['tx_multishop_pi1']['order_product_id']) and is_numeric($this->post['tx_multishop_pi1']['orders_status_id'])) {
             mslib_befe::updateOrderProductStatus($this->post['tx_multishop_pi1']['orders_id'], $this->post['tx_multishop_pi1']['order_product_id'], $this->post['tx_multishop_pi1']['orders_status_id']);
         }
     }
     exit;
     break;
 case 'update_currency':
     // change selected currency + exchange rate and save it in temporary session
     if ($this->post['tx_multishop_pi1']['selected_currency']) {
         $this->cookie['selected_currency'] = $this->post['tx_multishop_pi1']['selected_currency'];
         $use_google = true;
         $converted_rate = 1;
         // hook
         if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/ajax_pages/core.php']['updateCurrency'])) {
             $params = array('use_google' => &$use_google, 'converted_rate' => &$converted_rate, 'from_Currency' => $this->ms['MODULES']['CURRENCY_ARRAY']['cu_iso_3'], 'to_Currency' => $this->cookie['selected_currency']);
             foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/ajax_pages/core.php']['updateCurrency'] as $funcRef) {
                 \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);