Merge pull request #825 from indesign47/patch-4
[-] BO : AdminImport add available fields to Products
This commit is contained in:
@@ -219,8 +219,16 @@ class AdminImportControllerCore extends AdminController
|
||||
'ean13' => array('label' => $this->l('EAN13')),
|
||||
'upc' => array('label' => $this->l('UPC')),
|
||||
'ecotax' => array('label' => $this->l('Ecotax')),
|
||||
'width' => array('label' => $this->l('Width')),
|
||||
'height' => array('label' => $this->l('Height')),
|
||||
'depth' => array('label' => $this->l('Depth')),
|
||||
'weight' => array('label' => $this->l('Weight')),
|
||||
'quantity' => array('label' => $this->l('Quantity')),
|
||||
'minimal_quantity' => array('label' => $this->l('Minimal quantity')),
|
||||
'visibility' => array('label' => $this->l('Visibility')),
|
||||
'additional_shipping_cost' => array('label' => $this->l('Additional shipping cost')),
|
||||
'unity' => array('label' => $this->l('Unity')),
|
||||
'unit_price_ratio' => array('label' => $this->l('Unit price ratio')),
|
||||
'description_short' => array('label' => $this->l('Short description')),
|
||||
'description' => array('label' => $this->l('Description')),
|
||||
'tags' => array('label' => $this->l('Tags (x,y,z...)')),
|
||||
@@ -231,6 +239,7 @@ class AdminImportControllerCore extends AdminController
|
||||
'available_now' => array('label' => $this->l('Text when in stock')),
|
||||
'available_later' => array('label' => $this->l('Text when backorder allowed')),
|
||||
'available_for_order' => array('label' => $this->l('Available for order (0 = No, 1 = Yes)')),
|
||||
'available_date' => array('label' => $this->l('Product available date')),
|
||||
'date_add' => array('label' => $this->l('Product creation date')),
|
||||
'show_price' => array('label' => $this->l('Show price (0 = No, 1 = Yes)')),
|
||||
'image' => array('label' => $this->l('Image URLs (x,y,z...)')),
|
||||
@@ -240,6 +249,11 @@ class AdminImportControllerCore extends AdminController
|
||||
'features' => array('label' => $this->l('Feature(Name:Value:Position)')),
|
||||
'online_only' => array('label' => $this->l('Available online only (0 = No, 1 = Yes)')),
|
||||
'condition' => array('label' => $this->l('Condition')),
|
||||
'customizable' => array('label' => $this->l('Customizable (0 = No, 1 = Yes)')),
|
||||
'uploadable_files' => array('label' => $this->l('Uploadable files (0 = No, 1 = Yes)')),
|
||||
'text_fields' => array('label' => $this->l('Text fields (0 = No, 1 = Yes)')),
|
||||
'out_of_stock' => array('label' => $this->l('Out_of_stock')),
|
||||
'advanced_stock_management' => array('label' => $this->l('Advanced stock management')),
|
||||
'shop' => array(
|
||||
'label' => $this->l('ID / Name of shop'),
|
||||
'help' => $this->l('Ignore this field if you don\'t use the Multistore tool. If you leave this field empty, the default shop will be used.'),
|
||||
@@ -250,15 +264,28 @@ class AdminImportControllerCore extends AdminController
|
||||
'id_category' => array((int)Configuration::get('PS_HOME_CATEGORY')),
|
||||
'id_category_default' => (int)Configuration::get('PS_HOME_CATEGORY'),
|
||||
'active' => '1',
|
||||
'width' => 0.000000,
|
||||
'height' => 0.000000,
|
||||
'depth' => 0.000000,
|
||||
'weight' => 0.000000,
|
||||
'visibility' => 'both',
|
||||
'additional_shipping_cost' => 0.00,
|
||||
'unit_price_ratio' => 0.000000,
|
||||
'quantity' => 0,
|
||||
'minimal_quantity' => 1,
|
||||
'price' => 0,
|
||||
'id_tax_rules_group' => 0,
|
||||
'description_short' => array((int)Configuration::get('PS_LANG_DEFAULT') => ''),
|
||||
'link_rewrite' => array((int)Configuration::get('PS_LANG_DEFAULT') => ''),
|
||||
'online_only' => 0,
|
||||
'condition' => 'new',
|
||||
'available_date' => date('Y-m-d'),
|
||||
'date_add' => date('Y-m-d H:i:s'),
|
||||
'condition' => 'new',
|
||||
'customizable' => 0,
|
||||
'uploadable_files' => 0,
|
||||
'text_fields' => 0,
|
||||
'out_of_stock' => '2',
|
||||
'advanced_stock_management' => '0',
|
||||
);
|
||||
break;
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
id;Active (0/1);Name*;Categories (x,y,z,...);Price tax excl. Or Price tax excl;Tax rules id;Wholesale price;On sale (0/1);Discount amount;Discount percent;Discount from (yyy-mm-dd);Discount to (yyy-mm-dd);Reference #;Supplier reference #;Supplier;Manufacturer;EAN13;UPC;Ecotax;Weight;Quantity;Short description;Description;Tags (x,y,z,...);Meta-title;Meta-keywords;Meta-description;URL rewritten;Text when in-stock;Text if back-order allowed;Available for order (0 = No, 1 = Yes);Product creation date;Show price (0 = No, 1 = Yes);Image URLs (x,y,z,...);Delete existing images (0 = No, 1 = Yes);Feature (Name:Value:Position);Available online only (0 = No, 1 = Yes);Condition (new,used,refurbished);ID / Name of shop
|
||||
1;1;iPod Nano;Home, iPods;49;1;;1;;;;;92458844;54778855;AppleStore;Apple Computer, Inc;;;;0.5;800;New design. New features. Now i….;Curved ahead of the curve. For those about to rock, we give you nine amazing colors. But that's only part of the story. Feel the curved, all-aluminum and glass de...;apple, ipod, nano;;;;ipod-nano;In stock;Out stock;1;;1;http://youdomain.com/img.jpg, http://yourdomain.com/img1.jpg;1;;0;new;1
|
||||
2;1;iPod shuffle;Home, iPods;66.05;1;79;1;;;;;92458845;54778855;AppleStore;Apple Computer, Inc;;;;0;500;iPod shuffle, the world’s most wearabl….;;ipod, shuffle;;;;ipod-shuffle;In stock;Out stock;1;;1;http://youdomain.com/img25.jpg, http://yourdomain.com/img30.jpg;1;;0;new;1
|
||||
ID;Active (0/1);Name*;Categories (x,y,z,…);Price tax excl. Or Price tax excl;Tax rules id;Wholesale price;On sale (0/1);Discount amount;Discount percent;Discount from (yyy-mm-dd);Discount to (yyy-mm-dd);Reference #;Supplier reference #;Supplier;Manufacturer;EAN13;UPC;Ecotax;Width;Height;Depth;Weight;Quantity;Minimum quantity;Visibility;Additional shipping cost;Unity;Unity price ratio;Short description;Description;Tags (x,y,z,...);Meta-title;Meta-keywords;Meta-description;URL rewritten;Text when in-stock;Text if back-order allowed;Available for order (0 = No, 1 = Yes);Product available date;Product creation date;Show price (0 = No, 1 = Yes);Image URLs (x,y,z,...);Delete existing images (0 = No, 1 = Yes);Feature (Name:Value:Position);Available online only (0 = No, 1 = Yes);Condition (new,used,refurbished);Customizable;File fields;Text fields;Out of stock;Advanced stock management;ID / Name of shop
|
||||
1;1;iPod Nano;Home, iPods;49;1;40;0;;;;;92458844;54778855;AppleStore;Apple Computer, Inc;5605055055056;560505505555;0;0,1;0,2;0,3;0.5;800;1;both;0.00;;0.00;New design. New features. Now i….;Curved ahead of the curve. For those about to rock, we give you nine amazing colors. But that's only part of the story. Feel the curved, all-aluminum and glass de...;apple, ipod, nano;Meta title;Meta keywords;Meta description;ipod-nano;In stock;Out stock;1;;;1;http://youdomain.com/img.jpg, http://yourdomain.com/img1.jpg;0;Music:Rock:1;0;new;0;0;0;2;0;1
|
||||
2;1;iPod shuffle;Home, iPods;66.05;1;50;0;;;;;92458845;54778855;AppleStore;Apple Computer, Inc;5605055055057;560505505556;0;0,1;0,2;0,3;0.5;800;1;both;0.00;;0.00;iPod shuffle, the world’s most wearabl….;You want listen to music;ipod, shuffle;Meta title;Meta keywords;Meta description;ipod-shuffle;In stock;Out stock;1;;;1;http://youdomain.com/img25.jpg, http://yourdomain.com/img30.jpg;0;Music:Blues:2;0;new;0;0;0;2;0;1
|
||||
|
||||
|
Reference in New Issue
Block a user