//$str2="SELECT * from static_countries c, tx_multishop_countries_to_zones c2z where c2z.cn_iso_nr=c.cn_iso_nr order by c.cn_short_en"; $qry2 = $GLOBALS['TYPO3_DB']->sql_query($str2); $enabled_countries = array(); while (($row2 = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry2)) != false) { $enabled_countries[] = $row2; } // load enabled countries to array eof if ($this->post) { // billing details $user['email'] = $this->post['email']; $user['company'] = $this->post['company']; $user['first_name'] = $this->post['first_name']; $user['middle_name'] = $this->post['middle_name']; $user['last_name'] = $this->post['last_name']; $user['name'] = preg_replace('/\\s+/', ' ', $user['first_name'] . ' ' . $user['middle_name'] . ' ' . $user['last_name']); if (isset($this->post['date_of_birth']) && mslib_befe::isValidDate($this->post['date_of_birth'])) { $this->post['date_of_birth'] = strtotime($this->post['date_of_birth']); } else { $this->post['date_of_birth'] = ''; } $user['phone'] = $this->post['telephone']; $user['mobile'] = $this->post['mobile']; // fe user table holds integer as value: 0 is male, 1 is female // but in tt_address its varchar: m is male, f is female switch ($this->post['gender']) { case '0': case 'm': $user['gender'] = '0'; break; case '1': case 'f':
$updateArray = array(); $updateArray['specials_new_products_price'] = $item['products_specials_price']; if (strstr($updateArray['specials_new_products_price'], ",")) { $updateArray['specials_new_products_price'] = str_replace(",", '.', $updateArray['specials_new_products_price']); } $updateArray['specials_last_modified'] = time(); if (isset($item['products_special_price_start_date'])) { $time = 0; if ($item['products_special_price_start_date'] > 0 && (mslib_befe::isValidDateTime($item['products_special_price_start_date']) || mslib_befe::isValidDate($item['products_special_price_start_date']))) { $time = strtotime($item['products_special_price_start_date']); } $updateArray['start_date'] = $time; } if (isset($item['products_special_price_expiry_date'])) { $time = 0; if ($item['products_special_price_expiry_date'] > 0 && (mslib_befe::isValidDateTime($item['products_special_price_expiry_date']) || mslib_befe::isValidDate($item['products_special_price_expiry_date']))) { $time = strtotime($item['products_special_price_expiry_date']); } $updateArray['expires_date'] = $time; } // 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']['updateSpecialsPricePreHook'])) { $params = array('updateArray' => &$updateArray, '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']['updateSpecialsPricePreHook'] as $funcRef) { \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this); } } // custom hook that can be controlled by third-party plugin eof $str = "select 1 from tx_multishop_specials where products_id='" . $item['updated_products_id'] . "'"; $res = $GLOBALS['TYPO3_DB']->sql_query($str); if ($GLOBALS['TYPO3_DB']->sql_num_rows($res)) {
$is_proposal_params = ''; if ($order['is_proposal'] == 1) { $is_proposal_params = '&tx_multishop_pi1[is_proposal]=1'; } // hook to let other plugins further manipulate if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/includes/admin_edit_order.php']['adminEditOrderUpdateOrderPostProc'])) { $params = array('updateArray' => &$updateArray, 'orders_id' => &$this->get['orders_id'], 'order' => &$order); foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/includes/admin_edit_order.php']['adminEditOrderUpdateOrderPostProc'] as $funcRef) { \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this); } } // hook eol } // if (!$order['is_locked']) eol // update stuff with or without locked order if (isset($this->post['tx_multishop_pi1']['orders_paid_timestamp']) && mslib_befe::isValidDate($this->post['tx_multishop_pi1']['orders_paid_timestamp'])) { $this->post['tx_multishop_pi1']['orders_paid_timestamp'] = strtotime($this->post['tx_multishop_pi1']['orders_paid_timestamp']); } else { unset($this->post['tx_multishop_pi1']['orders_paid_timestamp']); } if ($this->post['tx_multishop_pi1']['orders_paid_timestamp']) { if ($order['paid']) { // if order already paid just update timestamp $updateArray = array(); if (isset($this->post['tx_multishop_pi1']['orders_paid_timestamp_visual']) && !$this->post['tx_multishop_pi1']['orders_paid_timestamp_visual']) { $updateArray['paid'] = '0'; $updateArray['orders_paid_timestamp'] = ''; } else { $updateArray['orders_paid_timestamp'] = $this->post['tx_multishop_pi1']['orders_paid_timestamp']; } if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/includes/admin_edit_order.php']['adminEditOrderUpdateOrderPreProc'])) {