public function __construct() { $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('batch.importer'); /** * @var array Array of importable fields and their friendly names. */ $this->_ImportFields = array( "productid" => GetLang('ProductID'), "prodcode" => GetLang('ProductCodeSKU'), "prodname" => GetLang('ProductName'), "prodvarsku" => GetLang('ProductVarSKU'), "prodvarprice" => GetLang('ProductVarPrice'), "prodvarweight" => GetLang('ProductVarWeight'), "prodvarimage" => GetLang('ProductVarImage'), "prodvarstock" => GetLang('ProductVarStock'), "prodvarlowstock" => GetLang('ProductVarLowStock') ); if($GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId() == 0 && gzte11(ISC_HUGEPRINT)) { $this->_ImportFields['prodvendorid'] = GetLang('Vendor'); } $this->productEntity = new ISC_ENTITY_PRODUCT(); parent::__construct(); }
public function __construct() { $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('batch.importer'); /** * @var array Array of importable fields and their friendly names. */ $this->_ImportFields = array( "productid" => GetLang('ProductID'), "prodname" => GetLang('ProductName'), "category" => GetLang('ImportProductsCategory'), "category2" => GetLang('ImportProductsCategory2'), "category3" => GetLang('ImportProductsCategory3'), "brandname" => GetLang('BrandName'), "prodcode" => GetLang('ProductCodeSKU'), "proddesc" => GetLang('ProductDescription'), "prodprice" => GetLang('Price'), "prodcostprice" => GetLang('CostPrice'), "prodsaleprice" => GetLang('SalePrice'), "prodretailprice" => GetLang('RetailPrice'), "prodfixedshippingcost" => GetLang('FixedShippingCost'), "prodfreeshipping" => GetLang('FreeShipping'), "prodallowpurchases" => GetLang('ProductAllowPurchases'), "prodavailability" => GetLang('Availability'), "prodvisible" => GetLang('ProductVisible'), "prodinvtrack" => GetLang('ProductTrackInventory'), "prodcurrentinv" => GetLang('CurrentStockLevel'), "prodlowinv" => GetLang('LowStockLevel'), "prodwarranty" => GetLang('ProductWarranty'), "prodweight" => GetLang('ProductWeight'), "prodwidth" => GetLang('ProductWidth'), "prodheight" => GetLang('ProductHeight'), "proddepth" => GetLang('ProductDepth'), "prodpagetitle" => GetLang('PageTitle'), "prodsearchkeywords" => GetLang('SearchKeywords'), "prodmetakeywords" => GetLang('MetaKeywords'), "prodmetadesc" => GetLang('MetaDescription'), "prodimagefile" => GetLang('ProductImage'), "prodimagedescription" => GetLang('ProductImageDescription'), "prodimageisthumb" => GetLang('ProductImageIsThumb'), "prodimagesort" => GetLang('ProductImageSort'), "prodfile" => GetLang('ProductFile'), "prodfiledescription" => GetLang('ProductFileDescription'), "prodfilemaxdownloads" => GetLang('ProductFileMaxDownloads'), "prodfileexpiresafter" => GetLang('ProductFileExpiresAfter'), "prodcondition" => GetLang('ProductCondition'), "prodshowcondition" => GetLang('ProductShowCondition'), "prodeventdaterequired" => GetLang('ProductEventDateRequired'), "prodeventdatefieldname" => GetLang('ProductEventDateName'), "prodeventdatelimited" => GetLang('ProductEventDateLimited'), "prodeventdatelimitedstartdate" => GetLang('ProductEventDateStartDate'), "prodeventdatelimitedenddate" => GetLang('ProductEventDateEndDate'), "prodsortorder" => GetLang('SortOrder'), 'tax_class_name' => getLang('ProductTaxClass'), 'upc' => GetLang('ProductUPC'), ); parent::__construct(); }
public function __construct() { $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('batch.importer'); /** * @var array Array of importable fields and their friendly names. */ $this->_ImportFields = array( "custconemail" => GetLang('CustEmail'), "custpassword" => GetLang('CustPassword'), "custconfirstname" => GetLang('CustFirstName'), "custconlastname" => GetLang('CustLastName'), "custconcompany" => GetLang('CustCompany'), "custconphone" => GetLang('CustPhone'), "shipfirstname" => GetLang('CustomerAddressFirstName'), "shiplastname" => GetLang('CustomerAddressLastName'), "shipaddress1" => GetLang('CustomerAddressLine1'), "shipaddress2" => GetLang('CustomerAddressLine2'), "shipcity" => GetLang('CustomerAddressCity'), "shipstate" => GetLang('CustomerAddressState'), "shipzip" => GetLang('CustomerAddressZip'), "shipcountry" => GetLang('CustomerAddressCountry'), "shipphone" => GetLang('CustomerAddressPhone'), 'custstorecredit' => GetLang('StoreCredit'), 'custgroup' => GetLang('CustomerGroup'), 'custnotes' => GetLang('CustomerNotes') ); /** * Tag on the customer and address custom fields */ $fields = array(); $fields += $GLOBALS['ISC_CLASS_FORM']->getFormFields(FORMFIELDS_FORM_ACCOUNT); $fields += $GLOBALS['ISC_CLASS_FORM']->getFormFields(FORMFIELDS_FORM_ADDRESS); if (is_array($fields) && !empty($fields)) { $this->_ImportFields['custom'] = array(); foreach (array_keys($fields) as $fieldId) { if ($fields[$fieldId]->record['formfieldprivateid'] !== '') { continue; } $this->_ImportFields['custom'][$fieldId] = htmlentities($fields[$fieldId]->record['formfieldlabel']); } } $this->customerEntity = new ISC_ENTITY_CUSTOMER(); $this->groupEntity = new ISC_ENTITY_CUSTOMERGROUP(); $this->shippingEntity = new ISC_ENTITY_SHIPPING(); parent::__construct($fields); }
public function __construct() { $GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('batch.importer'); /** * @var array Array of importable fields and their friendly names. */ $this->_ImportFields = array( "ordernumber" => GetLang('OrderNumber'), "ordertrackingnumber" => GetLang('OrdTrackingNo'), ); parent::__construct(); }