Пример #1
0
	protected function _ImportStep3()
	{
		// determine the field to use to identify products
		// prioritise by product id, sku, then name
		$field = "";
		if ($_POST['LinkField']['productid'] >= 0) {
			$field = "productid";
		}
		if ($_POST['LinkField']['prodcode'] >= 0) {
			$field = "prodcode";
		}
		if ($_POST['LinkField']['prodname'] >= 0) {
			$field = "prodname";
		}
		$this->ImportSession['IdentField'] = $field;

		// storage for a list of already imported images and what their new filenames are so that the same file isn't
		// resized multiple times
		$this->ImportSession['ImportedImages'] = array();

		parent::_ImportStep3();
	}