protected function _ImportStep2() { $this->ImportSession['UpdateExisting'] = isset($_POST['UpdateExisting']); $this->ImportSession['DefaultForEmpty'] = isset($_POST['DefaultForEmpty']); $this->ImportSession['CreateAllCombos'] = isset($_POST['CreateAllCombos']); parent::_ImportStep2(); }
/** * Custom step 2 code specific to product importing. Calls the parent ImportStep2 funciton. */ protected function _ImportStep2($MsgDesc="", $MsgStatus="") { // Set up generic import options if ($MsgDesc != "") { $GLOBALS['Message'] = MessageBox($MsgDesc, $MsgStatus); } $this->ImportSession['updateOrderStatus'] = $_POST['updateOrderStatus']; parent::_ImportStep2(); }
/** * Custom step 2 code specific to product importing. Calls the parent ImportStep2 funciton. */ protected function _ImportStep2($MsgDesc="", $MsgStatus="") { // Haven't been to this step before, need to parse CSV file if(!empty($_POST)) { $this->ImportSession['DeleteImages'] = isset($_POST['DeleteImages']); $this->ImportSession['DeleteDownloads'] = isset($_POST['DeleteDownloads']); $this->ImportSession['IsBulkEdit'] = isset($_POST['BulkEditTemplate']); $this->ignoreBlankFields(isset($_POST['IgnoreBlankFields'])); if ($this->ImportSession['IsBulkEdit']) { $_POST['OverrideDuplicates'] = 1; $_POST['Headers'] = 1; } if(!isset($this->ImportSession['CategoryId']) && !isset($this->ImportSession['AutoCategory'])) { if(isset($_POST['AutoCategory'])) { $this->ImportSession['AutoCategory'] = 1; $this->_RequiredFields[] = "category"; $GLOBALS['CategoryRequired'] = 1; } else { if(!isset($_POST['CategoryId']) && !isset($_POST['CategoryName'])) { $this->_ImportStep1(GetLang('ImportInvalidCategory'), MSG_ERROR); $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter(); exit; } // Creating a new category else if(isset($_POST['CategoryName']) && $_POST['CategoryName'] != "") { // Pass on to category creation function $_POST['catname'] = $_POST['CategoryName']; $_POST['catdesc'] = ''; $_POST['catpagetitle'] = ''; $_POST['catmetakeywords'] = ''; $_POST['catmetadesc'] = ''; $_POST['catlayoutfile'] = ''; $_POST['catsort'] = 0; $_POST['catparentid'] = 0; $_POST['catsearchkeywords'] = ''; $GLOBALS['ISC_CLASS_ADMIN_CATEGORY'] = GetClass('ISC_ADMIN_CATEGORY'); $error = $GLOBALS['ISC_CLASS_ADMIN_CATEGORY']->_CommitCategory(0); if($error) { $this->_ImportStep1($error, MSG_ERROR); } $_POST['CategoryId'] = $GLOBALS['ISC_CLASS_DB']->LastId(); } // Missing selection else if(empty($_POST['CategoryId'])) { $this->_ImportStep1(GetLang('ImportInvalidCategory'), MSG_ERROR); $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter(); exit; } $this->ImportSession['CategoryId'] = $_POST['CategoryId']; } } } // Set up generic import options if ($MsgDesc != "") { $GLOBALS['Message'] = MessageBox($MsgDesc, $MsgStatus); } parent::_ImportStep2(); }
/** * Custom step 2 code specific to product importing. Calls the parent ImportStep2 funciton. */ protected function _ImportStep2($MsgDesc="", $MsgStatus="") { if (!empty($_POST)) { $this->ImportSession['IsBulkEdit'] = isset($_POST['BulkEditTemplate']); if ($this->ImportSession['IsBulkEdit']) { $_POST['OverrideDuplicates'] = 1; $_POST['Headers'] = 1; } } // Set up generic import options if ($MsgDesc != "") { $GLOBALS['Message'] = MessageBox($MsgDesc, $MsgStatus); } parent::_ImportStep2(); }