From 96646b5c7a10cc2b10d40ef5b30c57ffeb3376e4 Mon Sep 17 00:00:00 2001 From: indesign47 Date: Fri, 4 Oct 2013 10:56:41 +0200 Subject: [PATCH 1/4] [-] BO : AdminImport add products available fields --- controllers/admin/AdminImportController.php | 24 ++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index 11ff2d8c2..3919b1204 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -219,8 +219,12 @@ 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')), + 'weight' => array('label' => $this->l('Weight')), + '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')), '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 +235,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 +245,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,6 +260,13 @@ 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, 'price' => 0, 'id_tax_rules_group' => 0, @@ -257,8 +274,13 @@ class AdminImportControllerCore extends AdminController '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; From 75cb92c329e218e9b3e59e391ad70959edaf4c24 Mon Sep 17 00:00:00 2001 From: indesign47 Date: Fri, 4 Oct 2013 11:44:52 +0200 Subject: [PATCH 2/4] Update AdminImportController.php --- controllers/admin/AdminImportController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index 3919b1204..b8ec0aa3e 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -225,6 +225,10 @@ class AdminImportControllerCore extends AdminController '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...)')), From 805989da396c5cd87809e89c3e1cc3a155a8596e Mon Sep 17 00:00:00 2001 From: indesign47 Date: Fri, 4 Oct 2013 13:04:52 +0200 Subject: [PATCH 3/4] [-] BO : AdminImport add products available fields --- docs/csv_import/products_import.csv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/csv_import/products_import.csv b/docs/csv_import/products_import.csv index 7253bc2eb..2475bab46 100644 --- a/docs/csv_import/products_import.csv +++ b/docs/csv_import/products_import.csv @@ -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 From b61e3e68b946ff718bb640653b42537a4669a89d Mon Sep 17 00:00:00 2001 From: indesign47 Date: Sat, 5 Oct 2013 10:50:19 +0200 Subject: [PATCH 4/4] Update AdminImportController.php --- controllers/admin/AdminImportController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index b8ec0aa3e..9ff3dc413 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -220,7 +220,7 @@ class AdminImportControllerCore extends AdminController 'upc' => array('label' => $this->l('UPC')), 'ecotax' => array('label' => $this->l('Ecotax')), 'width' => array('label' => $this->l('Width')), - 'weight' => array('label' => $this->l('Weight')), + 'height' => array('label' => $this->l('Height')), 'depth' => array('label' => $this->l('Depth')), 'weight' => array('label' => $this->l('Weight')), 'quantity' => array('label' => $this->l('Quantity')), @@ -272,6 +272,7 @@ class AdminImportControllerCore extends AdminController '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') => ''),