From 569c81c0dedab50dfe7336e14ca6c92debd50e28 Mon Sep 17 00:00:00 2001 From: indesign47 Date: Fri, 22 Nov 2013 09:45:15 +0100 Subject: [PATCH 01/24] [+] BO : AdminProducts add import products --- controllers/admin/AdminProductsController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 8ef5b8806..6796d362b 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -2482,6 +2482,11 @@ class AdminProductsControllerCore extends AdminController 'class' => 'toolbar-new' ); } + else + $this->toolbar_btn['import'] = array( + 'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type=products', + 'desc' => $this->l('Import') + ); $this->context->smarty->assign('toolbar_scroll', 1); $this->context->smarty->assign('show_toolbar', 1); From a76578b094a7c6652ebe9716560cddced009696f Mon Sep 17 00:00:00 2001 From: indesign47 Date: Fri, 22 Nov 2013 09:51:20 +0100 Subject: [PATCH 02/24] [+] BO : AdminAttributes add import combinations --- controllers/admin/AdminAttributesGroupsController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/admin/AdminAttributesGroupsController.php b/controllers/admin/AdminAttributesGroupsController.php index b8eb2051a..68c3e79a2 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -527,6 +527,10 @@ class AdminAttributesGroupsControllerCore extends AdminController 'desc' => $this->l('Add New Attributes') ); } + $this->toolbar_btn['import'] = array( + 'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type=combinations', + 'desc' => $this->l('Import') + ); } public function initToolbarTitle() From d6d2ef6906c94ea1e6c9cdac3ed8c990eff9e73d Mon Sep 17 00:00:00 2001 From: indesign47 Date: Sun, 24 Nov 2013 22:48:27 +0100 Subject: [PATCH 03/24] [-] BO : AdminImport add image suppliers --- docs/csv_import/suppliers_import.csv | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/csv_import/suppliers_import.csv b/docs/csv_import/suppliers_import.csv index e69397b22..e88d45682 100644 --- a/docs/csv_import/suppliers_import.csv +++ b/docs/csv_import/suppliers_import.csv @@ -1,4 +1,4 @@ -ID;Active (0/1);Name *;Description;Short description;Meta title;Meta keywords;Meta description -1;1;Applestore;

The Apple Store is a chain of retail stores owned and operated by Apple Inc., dealing in computers and consumer electronics. The stores sell Macintosh personal computers, software, iPods, iPads, iPhones, third-party accessories, and other consumer electronics such as Apple TV. Some high profile stores feature a Theatre for presentations and workshops and a Studio for training with Apple products; all stores offer a Genius Bar for technical support and repairs, as well as free workshops available to the public. Under the leadership of Ron Johnson, the former Senior Vice President of Retail Operations, the Apple Stores have, according to an article in the New York Times, been responsible for "[turning] the boring computer sales floor into a sleek playroom filled with gadgets".

;;Meta title-Applestore;Meta keywords-Applestore;Meta description-Applestore -2;1;Shure Online Store;

- No description -

;;Meta title-Shure Online Store;Meta keywords-Shure Online Store;Meta description-Shure Online Store -3;1;Nippon Electronic Import;

- No description -

;;Meta title-Nippon Electronic Import;Meta keywords-Nippon Electronic Import;Meta description-Nippon Electronic Import +ID;Active (0/1);Name *;Description;Short description;Meta title;Meta keywords;Meta description;Image URL +1;1;Applestore;

The Apple Store is a chain of retail stores owned and operated by Apple Inc., dealing in computers and consumer electronics. The stores sell Macintosh personal computers, software, iPods, iPads, iPhones, third-party accessories, and other consumer electronics such as Apple TV. Some high profile stores feature a Theatre for presentations and workshops and a Studio for training with Apple products; all stores offer a Genius Bar for technical support and repairs, as well as free workshops available to the public. Under the leadership of Ron Johnson, the former Senior Vice President of Retail Operations, the Apple Stores have, according to an article in the New York Times, been responsible for "[turning] the boring computer sales floor into a sleek playroom filled with gadgets".

;;Meta title-Applestore;Meta keywords-Applestore;Meta description-Applestore;http://localhost/prestashop/img/su/1.jpg +2;1;Shure Online Store;

- No description -

;;Meta title-Shure Online Store;Meta keywords-Shure Online Store;Meta description-Shure Online Store;http://localhost/prestashop/img/su/2.jpg +3;1;Nippon Electronic Import;

- No description -

;;Meta title-Nippon Electronic Import;Meta keywords-Nippon Electronic Import;Meta description-Nippon Electronic Import;http://localhost/prestashop/img/su/3.jpg From 6ef28542c9371bd32e70cf45a838a2931cd2a7c7 Mon Sep 17 00:00:00 2001 From: indesign47 Date: Sun, 24 Nov 2013 23:10:10 +0100 Subject: [PATCH 04/24] [-] BO : AdminImport products add missing fields Add to file header : Width, Height, Depth, Minimal quantity, Visibility, Additional shipping cost, Unity, Unit price ratio --- docs/csv_import/products_import.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csv_import/products_import.csv b/docs/csv_import/products_import.csv index 2757ec186..4d5d58c65 100644 --- a/docs/csv_import/products_import.csv +++ b/docs/csv_import/products_import.csv @@ -1,4 +1,4 @@ -ID;Active (0/1);Name *;Categories (x,y,z...);Price tax excluded or Price tax included;Tax rules ID;Wholesale price;On sale (0/1);Discount amount;Discount percent;Discount from (yyyy-mm-dd);Discount to (yyyy-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 when backorder 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;Customizable (0 = No, 1 = Yes);Uploadable files (0 = No, 1 = Yes);Text fields (0 = No, 1 = Yes);Out_of_stock;Advanced stock management;ID / Name of shop  +ID;Active (0/1);Name *;Categories (x,y,z...);Price tax excluded or Price tax included;Tax rules ID;Wholesale price;On sale (0/1);Discount amount;Discount percent;Discount from (yyyy-mm-dd);Discount to (yyyy-mm-dd);Reference #;Supplier reference #;Supplier;Manufacturer;EAN13;UPC;Ecotax;Width;Height;Depth;Weight;Quantity;Minimal quantity;Visibility;Additional shipping cost;Unity;Unit price ratio;Short description;Description;Tags (x,y,z...);Meta title;Meta keywords;Meta description;URL rewritten;Text when in stock;Text when backorder 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;Customizable (0 = No, 1 = Yes);Uploadable files (0 = No, 1 = Yes);Text fields (0 = No, 1 = Yes);Out_of_stock;Advanced stock management;ID / Name of shop  1;1;iPod Nano;iPods;100;1;80;1;;5.5;2013-06-01;2018-12-31;RP-demo_1;RF-demo_1;Applestore;Apple;1234567890123;;1;0.6;0.2;0.4;0.068357;160;1;;;;;

New design.

;

New design.

;apple, ipod, nano;Meta title-Nano;Meta keywords-Nano;Meta description-Nano;iPod-Nano;In Stock;Current supply. Ordering availlable;1;2013-03-01;2013-01-01;1;http://localhost/prestashop_1.5.6.0/img/p/1/5/15.jpg;0;;0;new;0;0;0;0;0; 2;1;iPod shuffle;iPods;60;1;40;1;;;2013-06-01;2018-12-31;RP-demo_2;RF-demo_2;Applestore;Apple;1234567890123;;1;0.1;0.1;0.1;0.027563;120;1;both;;;;

New design.

;

New design.

;ipod, shuffle;Meta title-Shuffle;Meta keywords-Shuffle;Meta description-Shuffle;iPod-shuffle;In Stock;Current supply. Ordering availlable;1;2013-03-01;2013-01-02;1;http://localhost/prestashop_1.5.6.0/img/p/2/3/23.jpg;0;;0;new;0;0;0;0;0; 3;1;MacBook Air;Laptops;1500;1;1000;1;100;;2013-06-01;2018-12-31;RP-demo_3;RF-demo_3;Applestore;Apple;1234567890123;;2;1.31;0.3;1;2.976846;400;1;catalog;;;;

New design.

;

New design.

;MacBook, Air;Meta title-McBookAir;Meta keywords-McBookAir;Meta description-McBookAir;MacBook-Air;In Stock;Current supply. Ordering availlable;1;2013-03-01;2013-01-03;1;http://localhost/prestashop_1.5.6.0/img/p/1/1.jpg;1;;0;new;0;0;0;0;0; From bc083ece838c4b546d87d61dbd6d0ef6984172b2 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 25 Nov 2013 10:25:32 +0100 Subject: [PATCH 05/24] // Manual merge from development branch --- modules/blocklayered/blocklayered.php | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php index 87cc36a68..58a61fc64 100644 --- a/modules/blocklayered/blocklayered.php +++ b/modules/blocklayered/blocklayered.php @@ -1347,7 +1347,9 @@ class BlockLayered extends Module $this->context->controller->addJS(($this->_path).'blocklayered.js'); - $this->context->controller->addJQueryUI('ui.slider'); + $this->context->controller->addJS(_PS_JS_DIR_.'jquery/jquery-ui-1.8.10.custom.min.js'); + $this->context->controller->addJQueryUI('ui.slider'); + $this->context->controller->addCSS(_PS_CSS_DIR_.'jquery-ui-1.8.10.custom.css"'); $this->context->controller->addCSS(($this->_path).'blocklayered-15.css', 'all'); $this->context->controller->addJQueryPlugin('scrollTo'); @@ -2863,7 +2865,7 @@ class BlockLayered extends Module AND '.$alias.'.active = 1 AND '.$alias.'.`visibility` IN ("both", "catalog")'; $sql_query['group'] = ') count_products FROM '._DB_PREFIX_.'category c - LEFT JOIN '._DB_PREFIX_.'category_lang cl ON (cl.id_category = c.id_category AND cl.id_lang = '.$id_lang.') + LEFT JOIN '._DB_PREFIX_.'category_lang cl ON (cl.id_category = c.id_category AND cl.`id_shop` = '.(int)Context::getContext()->shop->id.' and cl.id_lang = '.$id_lang.') WHERE c.nleft > '.(int)$parent->nleft.' AND c.nright < '.(int)$parent->nright.' '.($depth ? 'AND c.level_depth <= '.($parent->level_depth+(int)$depth) : '').' @@ -3166,6 +3168,23 @@ class BlockLayered extends Module if (isset($selected_filters['id_feature'][$feature['id_feature_value']])) $feature_array[$feature['id_feature']]['values'][$feature['id_feature_value']]['checked'] = true; } + + //Natural sort + foreach ($feature_array as $key => $value) + { + $temp = array(); + foreach ($feature_array[$key]['values'] as $keyint => $valueint) + $temp[$keyint] = $valueint['name']; + + natcasesort($temp); + $temp2 = array(); + + foreach ($temp as $keytemp => $valuetemp) + $temp2[$keytemp] = $feature_array[$key]['values'][$keytemp]; + + $feature_array[$key]['values'] = $temp2; + } + $filter_blocks = array_merge($filter_blocks, $feature_array); } break; From d1c9ec8e0929b16803cbf077dc35392ec5525f3b Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 25 Nov 2013 11:02:40 +0100 Subject: [PATCH 06/24] // Changing Typo preserving backward compatibility --- modules/blocklayered/blocklayered.js | 14 ++++++++++++-- .../js/jquery/jquery.uniform-modify.js | 2 ++ .../js/modules/blocklayered/blocklayered.js | 12 +++++++++++- .../mobile/category-product-sort.tpl | 4 ++-- themes/default-bootstrap/product-sort.tpl | 4 ++-- 5 files changed, 29 insertions(+), 7 deletions(-) diff --git a/modules/blocklayered/blocklayered.js b/modules/blocklayered/blocklayered.js index e1ec5b2de..0a2301555 100644 --- a/modules/blocklayered/blocklayered.js +++ b/modules/blocklayered/blocklayered.js @@ -123,7 +123,7 @@ $(document).ready(function() hideFilterValueAction(this); }); - // To be sure there is no other events attached to the selectPrductSort, change the ID + // To be sure there is no other events attached to the selectProductSort, change the ID var id = 1; while ($('#selectPrductSort').length) { // Because ids are duplicated // Unbind event change on #selectPrductSort @@ -134,8 +134,18 @@ $(document).ready(function() $('label[for=selectPrductSort]').attr('for', 'selectPrductSort'+id); id++; } + + while ($('#selectProductSort').length) { // Because ids are duplicated + // Unbind event change on #selectProductSort + $('#selectProductSort').unbind('change'); + $('#selectProductSort').attr('onchange', ''); + $('#selectProductSort').addClass('selectProductSort'); + $('#selectProductSort').attr('id', 'selectProductSort'+id); + $('label[for=selectProductSort]').attr('for', 'selectProductSort'+id); + id++; + } - // Since 1.5, event is add to .selectProductSort and not to #selectPrductSort + // Since 1.5, event is add to .selectProductSort and not to #selectProductSort setTimeout(function() { $('.selectProductSort').unbind('change'); }, 100); diff --git a/themes/default-bootstrap/js/jquery/jquery.uniform-modify.js b/themes/default-bootstrap/js/jquery/jquery.uniform-modify.js index 301991aa8..1344cf021 100644 --- a/themes/default-bootstrap/js/jquery/jquery.uniform-modify.js +++ b/themes/default-bootstrap/js/jquery/jquery.uniform-modify.js @@ -1073,6 +1073,8 @@ $(window).load(function () { $("select.form-control,input[type='checkbox']:not(.comparator), input[type='radio'],input#id_carrier2, input[type='file']").uniform(); $("#uniform-selectPrductSort1").innerWidth(0); $("#uniform-selectPrductSort1 span").innerWidth(0); + $("#uniform-selectProductSort1").innerWidth(0); + $("#uniform-selectProductSort1 span").innerWidth(0); }); diff --git a/themes/default-bootstrap/js/modules/blocklayered/blocklayered.js b/themes/default-bootstrap/js/modules/blocklayered/blocklayered.js index 8c43c4c55..c79358722 100644 --- a/themes/default-bootstrap/js/modules/blocklayered/blocklayered.js +++ b/themes/default-bootstrap/js/modules/blocklayered/blocklayered.js @@ -123,7 +123,7 @@ $(document).ready(function() hideFilterValueAction(this); }); - // To be sure there is no other events attached to the selectPrductSort, change the ID + // To be sure there is no other events attached to the selectProductSort, change the ID var id = 1; while ($('#selectPrductSort').length) { // Because ids are duplicated // Unbind event change on #selectPrductSort @@ -134,6 +134,16 @@ $(document).ready(function() $('label[for=selectPrductSort]').attr('for', 'selectPrductSort'+id); id++; } + + while ($('#selectProductSort').length) { // Because ids are duplicated + // Unbind event change on #selectProductSort + $('#selectProductSort').unbind('change'); + $('#selectProductSort').attr('onchange', ''); + $('#selectProductSort').addClass('selectProductSort'); + $('#selectProductSort').attr('id', 'selectProductSort'+id); + $('label[for=selectProductSort]').attr('for', 'selectProductSort'+id); + id++; + } // Since 1.5, event is add to .selectProductSort and not to #selectPrductSort setTimeout(function() { diff --git a/themes/default-bootstrap/mobile/category-product-sort.tpl b/themes/default-bootstrap/mobile/category-product-sort.tpl index 0b94a2f8e..81c6ca23d 100644 --- a/themes/default-bootstrap/mobile/category-product-sort.tpl +++ b/themes/default-bootstrap/mobile/category-product-sort.tpl @@ -40,7 +40,7 @@ //
- {if !$PS_CATALOG_MODE} diff --git a/themes/default-bootstrap/product-sort.tpl b/themes/default-bootstrap/product-sort.tpl index 18a75b361..2f1a9fb01 100644 --- a/themes/default-bootstrap/product-sort.tpl +++ b/themes/default-bootstrap/product-sort.tpl @@ -60,8 +60,8 @@ $(document).ready(function(){ {/if}
- - {if !$PS_CATALOG_MODE} From 5afde2163bb6c815a82aa4e670127680212d5608 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 25 Nov 2013 11:10:42 +0100 Subject: [PATCH 07/24] [+] MO : Add name value when hover color in blocklayered.tpl - Thanks @codeurWeb --- modules/blocklayered/blocklayered.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/blocklayered/blocklayered.tpl b/modules/blocklayered/blocklayered.tpl index f514f7231..006d6dab8 100644 --- a/modules/blocklayered/blocklayered.tpl +++ b/modules/blocklayered/blocklayered.tpl @@ -94,7 +94,7 @@ param_product_url = ''; {if $value.nbr || !$hide_0_values}
  • {if isset($filter.is_color_group) && $filter.is_color_group} - + {if isset($value.checked) && $value.checked}{/if} {else} @@ -115,7 +115,7 @@ param_product_url = ''; {if $value.nbr || !$hide_0_values}
  • {if isset($filter.is_color_group) && $filter.is_color_group} - + {if isset($value.checked) && $value.checked}{/if} {else} From dec1555b3245f0463818274fa5462d0a4404cce1 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 25 Nov 2013 11:30:12 +0100 Subject: [PATCH 08/24] // Fixed dashboard simulation mode switch --- .../template/controllers/dashboard/helpers/view/view.tpl | 4 ++-- controllers/admin/AdminDashboardController.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/dashboard/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/dashboard/helpers/view/view.tpl index 90ab4b49f..24a7c7986 100644 --- a/admin-dev/themes/default/template/controllers/dashboard/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/dashboard/helpers/view/view.tpl @@ -132,11 +132,11 @@

    {l s="Simulation Mode"}

    - + - + diff --git a/controllers/admin/AdminDashboardController.php b/controllers/admin/AdminDashboardController.php index 47fa4106f..015e417af 100644 --- a/controllers/admin/AdminDashboardController.php +++ b/controllers/admin/AdminDashboardController.php @@ -236,6 +236,7 @@ class AdminDashboardControllerCore extends AdminController 'new_version_url' => Tools::getCurrentUrlProtocolPrefix().'api.prestashop.com/version/check_version.php?v='._PS_VERSION_.'&lang='.$this->context->language->iso_code, 'dashboard_use_push' => Configuration::get('PS_DASHBOARD_USE_PUSH'), 'calendar' => $calendar_helper->generate(), + 'PS_DASHBOARD_SIMULATION' => Configuration::get('PS_DASHBOARD_SIMULATION'), 'datepickerFrom' => Tools::getValue('datepickerFrom', $this->context->employee->stats_date_from), 'datepickerTo' => Tools::getValue('datepickerTo', $this->context->employee->stats_date_to) ); From c5184a6e0fc6bad27bdb7ae8628efc71235c2d1d Mon Sep 17 00:00:00 2001 From: gRoussac Date: Mon, 25 Nov 2013 11:55:14 +0100 Subject: [PATCH 09/24] [-] BO : AdminImport new supplier csv --- docs/csv_import/suppliers_import.csv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/csv_import/suppliers_import.csv b/docs/csv_import/suppliers_import.csv index e88d45682..e833edf36 100644 --- a/docs/csv_import/suppliers_import.csv +++ b/docs/csv_import/suppliers_import.csv @@ -1,4 +1,4 @@ ID;Active (0/1);Name *;Description;Short description;Meta title;Meta keywords;Meta description;Image URL -1;1;Applestore;

    The Apple Store is a chain of retail stores owned and operated by Apple Inc., dealing in computers and consumer electronics. The stores sell Macintosh personal computers, software, iPods, iPads, iPhones, third-party accessories, and other consumer electronics such as Apple TV. Some high profile stores feature a Theatre for presentations and workshops and a Studio for training with Apple products; all stores offer a Genius Bar for technical support and repairs, as well as free workshops available to the public. Under the leadership of Ron Johnson, the former Senior Vice President of Retail Operations, the Apple Stores have, according to an article in the New York Times, been responsible for "[turning] the boring computer sales floor into a sleek playroom filled with gadgets".

    ;;Meta title-Applestore;Meta keywords-Applestore;Meta description-Applestore;http://localhost/prestashop/img/su/1.jpg -2;1;Shure Online Store;

    - No description -

    ;;Meta title-Shure Online Store;Meta keywords-Shure Online Store;Meta description-Shure Online Store;http://localhost/prestashop/img/su/2.jpg -3;1;Nippon Electronic Import;

    - No description -

    ;;Meta title-Nippon Electronic Import;Meta keywords-Nippon Electronic Import;Meta description-Nippon Electronic Import;http://localhost/prestashop/img/su/3.jpg +1;1;Applestore;

    The Apple Store is a chain of retail stores owned and operated by Apple Inc., dealing in computers and consumer electronics. The stores sell Macintosh personal computers, software, iPods, iPads, iPhones, third-party accessories, and other consumer electronics such as Apple TV. Some high profile stores feature a Theatre for presentations and workshops and a Studio for training with Apple products; all stores offer a Genius Bar for technical support and repairs, as well as free workshops available to the public. Under the leadership of Ron Johnson, the former Senior Vice President of Retail Operations, the Apple Stores have, according to an article in the New York Times, been responsible for "[turning] the boring computer sales floor into a sleek playroom filled with gadgets".

    ;Meta title-Applestore;Meta keywords-Applestore;Meta description-Applestore;http://localhost/prestashop/img/su/Pic-of-this-supplier.jpg +2;1;Shure Online Store;

    - No description -

    ;

    - No description -

    ;Meta title-Shure Online Store;Meta keywords-Shure Online Store;Meta description-Shure Online Store;http://localhost/prestashop/img/su/Pic-of-this-supplier-2.jpg +3;1;Nippon Electronic Import;

    - No description -

    ;

    - No description -

    ;Meta title-Nippon Electronic Import;Meta keywords-Nippon Electronic Import;Meta description-Nippon Electronic Import;http://localhost/prestashop/img/su/Pic-of-this-supplier-3.jpg From 611cfd90a08f07a481c080776eb798bd1f7fbf58 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 25 Nov 2013 12:08:34 +0100 Subject: [PATCH 10/24] [-] BO : FixBug #PSCSX-40 categories unchanged after select a new home category --- .../default/template/controllers/shop/helpers/form/form.tpl | 2 +- controllers/admin/AdminShopController.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/shop/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/shop/helpers/form/form.tpl index 73644d5b8..dbb03e0bd 100644 --- a/admin-dev/themes/default/template/controllers/shop/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/shop/helpers/form/form.tpl @@ -57,7 +57,7 @@ }, function(res) { - $('#categories-treeview').parent().html(res); + $('#categories-tree').parent().parent().html(res); } ); }); diff --git a/controllers/admin/AdminShopController.php b/controllers/admin/AdminShopController.php index 1fcea5901..7481cd218 100755 --- a/controllers/admin/AdminShopController.php +++ b/controllers/admin/AdminShopController.php @@ -203,8 +203,9 @@ class AdminShopControllerCore extends AdminController $children = Category::getChildren($root_category['id_category'], $this->context->language->id); foreach ($children as $child) $selected_cat[] = $child['id_category']; - $helper = new Helper(); - $this->content = $helper->renderCategoryTree($root_category, $selected_cat); + + $helper = new HelperTreeCategories('categories-tree', null, $root_category['id_category']); + $this->content = $helper->setSelectedCategories($selected_cat)->setUseSearch(true)->setUseCheckBox(true)->render(); } parent::displayAjax(); } From 90d3dff38188864b7ea82ba964892b05c55d07ab Mon Sep 17 00:00:00 2001 From: Francois Gaillard Date: Mon, 25 Nov 2013 12:12:57 +0100 Subject: [PATCH 11/24] [-] MO : Bug fix - Blockwishlist, Product image link in BO --- modules/blockwishlist/blockwishlist.php | 6 +++--- modules/blockwishlist/config.xml | 2 +- modules/blockwishlist/managewishlist.tpl | 2 +- modules/blockwishlist/view.tpl | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/blockwishlist/blockwishlist.php b/modules/blockwishlist/blockwishlist.php index 2eb63f795..074e72b61 100644 --- a/modules/blockwishlist/blockwishlist.php +++ b/modules/blockwishlist/blockwishlist.php @@ -38,7 +38,7 @@ class BlockWishList extends Module { $this->name = 'blockwishlist'; $this->tab = 'front_office_features'; - $this->version = 0.3; + $this->version = 0.4; $this->author = 'PrestaShop'; $this->need_instance = 0; @@ -258,7 +258,7 @@ class BlockWishList extends Module $this->_html .= ' - '.htmlentities($product['name'], ENT_COMPAT, 'UTF-8').' + '.htmlentities($product['name'], ENT_COMPAT, 'UTF-8').' '.$product['name']; if (isset($product['attributes_small'])) $this->_html .= '
    '.htmlentities($product['attributes_small'], ENT_COMPAT, 'UTF-8').''; @@ -409,7 +409,7 @@ class BlockWishList extends Module foreach ($products as $key => $val) { $image = Image::getCover($val['id_product']); - $products[$key]['image'] = $this->context->link->getImageLink($val['link_rewrite'], $image['id_image'], 'small'); + $products[$key]['image'] = $this->context->link->getImageLink($val['link_rewrite'], $image['id_image'], ImageType::getFormatedName('small')); } $fields_list = array( diff --git a/modules/blockwishlist/config.xml b/modules/blockwishlist/config.xml index 43c96a918..1bd0cf514 100755 --- a/modules/blockwishlist/config.xml +++ b/modules/blockwishlist/config.xml @@ -2,7 +2,7 @@ blockwishlist - + diff --git a/modules/blockwishlist/managewishlist.tpl b/modules/blockwishlist/managewishlist.tpl index 171cbae10..82990caba 100644 --- a/modules/blockwishlist/managewishlist.tpl +++ b/modules/blockwishlist/managewishlist.tpl @@ -52,7 +52,7 @@
    diff --git a/modules/blockwishlist/view.tpl b/modules/blockwishlist/view.tpl index 24f1b5971..5d10b5717 100644 --- a/modules/blockwishlist/view.tpl +++ b/modules/blockwishlist/view.tpl @@ -46,7 +46,7 @@
    From b8c77d90b49baa39b84871e7941853309bfa2e81 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 25 Nov 2013 12:17:26 +0100 Subject: [PATCH 12/24] [*] BO : Added countries to order list (idea from PhpMadman https://github.com/PrestaShop/PrestaShop/pull/909) --- controllers/admin/AdminOrdersController.php | 34 ++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index c121de902..9234c00fd 100755 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -46,10 +46,14 @@ class AdminOrdersControllerCore extends AdminController CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, osl.`name` AS `osname`, os.`color`, - IF((SELECT COUNT(so.id_order) FROM `'._DB_PREFIX_.'orders` so WHERE so.id_customer = a.id_customer) > 1, 0, 1) as new'; + IF((SELECT COUNT(so.id_order) FROM `'._DB_PREFIX_.'orders` so WHERE so.id_customer = a.id_customer) > 1, 0, 1) as new, + country_lang.name as cname'; $this->_join = ' LEFT JOIN `'._DB_PREFIX_.'customer` c ON (c.`id_customer` = a.`id_customer`) + INNER JOIN `'._DB_PREFIX_.'address` address ON address.id_address = a.id_address_delivery + INNER JOIN `'._DB_PREFIX_.'country` country ON address.id_country = country.id_country + INNER JOIN `'._DB_PREFIX_.'country_lang` country_lang ON (country.`id_country` = country_lang.`id_country` AND country_lang.`id_lang` = '.(int)$this->context->language->id.') LEFT JOIN `'._DB_PREFIX_.'order_state` os ON (os.`id_order_state` = a.`current_state`) LEFT JOIN `'._DB_PREFIX_.'order_state_lang` osl ON (os.`id_order_state` = osl.`id_order_state` AND osl.`id_lang` = '.(int)$this->context->language->id.')'; $this->_orderBy = 'id_order'; @@ -115,6 +119,34 @@ class AdminOrdersControllerCore extends AdminController 'search' => false, 'remove_onclick' => true) ); + + if (Country::isCurrentlyUsed('country', true)) + { + $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS(' + SELECT DISTINCT c.id_country, cl.`name` + FROM `'._DB_PREFIX_.'orders` o + '.Shop::addSqlAssociation('orders', 'o').' + INNER JOIN `'._DB_PREFIX_.'address` a ON a.id_address = o.id_address_delivery + INNER JOIN `'._DB_PREFIX_.'country` c ON a.id_country = c.id_country + INNER JOIN `'._DB_PREFIX_.'country_lang` cl ON (c.`id_country` = cl.`id_country` AND cl.`id_lang` = '.(int)$this->context->language->id.') + ORDER BY cl.name ASC'); + + $country_array = array(); + foreach ($result as $row) + $country_array[$row['id_country']] = $row['name']; + + $part1 = array_slice($this->fields_list, 0, 3); + $part2 = array_slice($this->fields_list, 3); + $part1['cname'] = array( + 'title' => $this->l('Delivery'), + 'type' => 'select', + 'list' => $country_array, + 'filter_key' => 'country!id_country', + 'filter_type' => 'int', + 'order_key' => 'cname' + ); + $this->fields_list = array_merge($part1, $part2); + } $this->shopLinkType = 'shop'; $this->shopShareDatas = Shop::SHARE_ORDER; From b2e685e1269fec31d954c9f3d9b8c74fd6c8962e Mon Sep 17 00:00:00 2001 From: Felipe Uribe Date: Mon, 25 Nov 2013 07:19:37 -0500 Subject: [PATCH 13/24] [-] FO, Bug fix double/ files containing a double /, example: {$css_dir}/b... = cssdir//bootstrap_lib/bootstrap.css to {$css_dir}b... = = cssdir/bootstrap_lib/bootstrap.css --- themes/default-bootstrap/header.tpl | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/themes/default-bootstrap/header.tpl b/themes/default-bootstrap/header.tpl index bbc681892..6fc22eade 100644 --- a/themes/default-bootstrap/header.tpl +++ b/themes/default-bootstrap/header.tpl @@ -62,11 +62,11 @@ var priceDisplayMethod = {$priceDisplay}; var roundMode = {$roundMode}; - - - - - + + + + + {if isset($css_files)} @@ -79,18 +79,18 @@ {/foreach} {/if} - + - - - - - - - + + + + + + + {$HOOK_HEADER} From eb312455e5287354ebf6c7116c37a146e52976ff Mon Sep 17 00:00:00 2001 From: ccauw Date: Mon, 25 Nov 2013 14:13:10 +0100 Subject: [PATCH 14/24] [-] BO : Double separator in function createTemplate() smarty->getTemplateDir() returns a result ending with a separator, so no need to add DIRECTORY_SEPARATOR ? --- classes/helper/Helper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/helper/Helper.php b/classes/helper/Helper.php index fe2f4af50..041f6cc60 100755 --- a/classes/helper/Helper.php +++ b/classes/helper/Helper.php @@ -87,9 +87,9 @@ class HelperCore $override_tpl_path = _PS_MODULE_DIR_.$this->module->name.'/views/templates/admin/_configure/'.$this->override_folder.$this->base_folder.$tpl_name; else { - if (file_exists($this->context->smarty->getTemplateDir(1).DIRECTORY_SEPARATOR.$this->override_folder.$this->base_folder.$tpl_name)) - $override_tpl_path = $this->context->smarty->getTemplateDir(1).DIRECTORY_SEPARATOR.$this->override_folder.$this->base_folder.$tpl_name; - else if (file_exists($this->context->smarty->getTemplateDir(0).DIRECTORY_SEPARATOR.'controllers'.DIRECTORY_SEPARATOR.$this->override_folder.$this->base_folder.$tpl_name)) + if (file_exists($this->context->smarty->getTemplateDir(1).$this->override_folder.$this->base_folder.$tpl_name)) + $override_tpl_path = $this->context->smarty->getTemplateDir(1).$this->override_folder.$this->base_folder.$tpl_name; + else if (file_exists($this->context->smarty->getTemplateDir(0).'controllers'.DIRECTORY_SEPARATOR.$this->override_folder.$this->base_folder.$tpl_name)) $override_tpl_path = $this->context->smarty->getTemplateDir(0).'controllers'.DIRECTORY_SEPARATOR.$this->override_folder.$this->base_folder.$tpl_name; } From 00e5bfe26ecd4464ed85598bb9b7f3f487d71898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Nadaud?= Date: Mon, 25 Nov 2013 14:22:59 +0100 Subject: [PATCH 15/24] // Updating current branch --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 29f1cdfdc..9673f5b4e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,7 @@ Contributing ------------ -PrestaShop is an open-source e-commerce solution - To contribute to our project, you can make pull requests on the development branch. +PrestaShop is an open-source e-commerce solution - To contribute to our project, you can make pull requests on the bootstrap branch. If you need some help to make a [pull-request][1] All contributions must respect [the coding norm][2] and [the commit norm][3] in your pull-request. All core files you commit in your pull request must have Open Software License (OSL 3.0) From 93cbad2a0553ac18d2d26cc8d8a5155f1ce65f78 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 25 Nov 2013 14:29:49 +0100 Subject: [PATCH 16/24] [*] BO : replaced age by total spent in the customer list --- controllers/admin/AdminCustomersController.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index 6cd78c84e..133cf38d6 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -60,8 +60,11 @@ class AdminCustomersControllerCore extends AdminController $titles_array[$gender->id_gender] = $gender->name; $this->_select = ' - a.date_add, gl.name as title, - IF (YEAR(`birthday`) = 0, "-", (YEAR(CURRENT_DATE)-YEAR(`birthday`)) - (RIGHT(CURRENT_DATE, 5) < RIGHT(birthday, 5))) AS `age`, ( + a.date_add, gl.name as title, ( + SELECT SUM(total_paid_tax_excl / conversion_rate) FROM '._DB_PREFIX_.'orders o + WHERE o.id_customer = a.id_customer + AND active = 1 + ) as total_spent, ( SELECT c.date_add FROM '._DB_PREFIX_.'guest g LEFT JOIN '._DB_PREFIX_.'connections c ON c.id_guest = g.id_guest WHERE g.id_customer = a.id_customer @@ -92,10 +95,12 @@ class AdminCustomersControllerCore extends AdminController 'email' => array( 'title' => $this->l('Email address') ), - 'age' => array( - 'title' => $this->l('Age'), + 'total_spent' => array( + 'title' => $this->l('Sales'), + 'type' => 'price', 'search' => false, - 'align' => 'center' + 'havingFilter' => true, + 'align' => 'right' ), 'active' => array( 'title' => $this->l('Enabled'), From d30e3763542e4ecf549eb3c84c86a9e26e35ff02 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 25 Nov 2013 14:42:21 +0100 Subject: [PATCH 17/24] // Remove "no name" error on new product --- .../controllers/products/helpers/form/form.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl index eb63cf057..b4c39b412 100644 --- a/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl @@ -146,6 +146,9 @@ // if the tab has not already been loaded, load it now tabs_manager.display(id, true); + if (btn_name == 'Associations') + handleSaveButtons(); + tabs_manager.onLoad(id, function(){ $("#product-tab-content-"+id).show(0, function(){ $(this).trigger('displayed'); @@ -169,7 +172,8 @@ { $('#desc-product-newCombination').hide(); // if pack is enabled, save button are visible only if pack is valid - handleSaveButtons(); + if (btn_name != 'Informations') + handleSaveButtons(); } hideOtherLanguage(default_language); $('.label-tooltip').tooltip(); @@ -181,10 +185,6 @@ if ($('#product-tab-content-Associations').hasClass('not-loaded')) disableSave(); - tabs_manager.onLoad('Associations', function(){ - handleSaveButtons(); - }); - $('.confirm_leave').live('click', function(){ // Double quotes are necessary when the translated string has single quotes return confirm("{l s='You will lose all unsaved modifications. Are you sure that you\'d like to proceed?' js=1}"); From 620441997c910fc080edcafef603a9b8d6ecf575 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Mon, 25 Nov 2013 16:05:07 +0100 Subject: [PATCH 18/24] [-] CORE : No Exception when CONTENT_LENGTH is no set --- classes/FileUploader.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/classes/FileUploader.php b/classes/FileUploader.php index 695217189..6bfd71e25 100755 --- a/classes/FileUploader.php +++ b/classes/FileUploader.php @@ -248,9 +248,13 @@ class QqUploadedFileXhr public function getSize() { - if (isset($_SERVER['CONTENT_LENGTH'])) - return (int)$_SERVER['CONTENT_LENGTH']; - else - throw new Exception('Getting content length is not supported.'); + if (isset($_SERVER['CONTENT_LENGTH']) || isset($_SERVER['HTTP_CONTENT_LENGTH'])) + { + if (isset($_SERVER['HTTP_CONTENT_LENGTH'])) + return (int)$_SERVER['HTTP_CONTENT_LENGTH']; + else + return (int)$_SERVER['CONTENT_LENGTH']; + } + return false; } -} +} \ No newline at end of file From b2cee0426aea525437f598bce43c330b5965512d Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 25 Nov 2013 16:05:18 +0100 Subject: [PATCH 19/24] // Default category was not selected --- .../tree/tree_associated_categories.tpl | 40 +++++++++++++++++++ .../helpers/tree/tree_node_item_checkbox.tpl | 10 ++--- 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/products/helpers/tree/tree_associated_categories.tpl b/admin-dev/themes/default/template/controllers/products/helpers/tree/tree_associated_categories.tpl index 0239a9894..d55869f9f 100644 --- a/admin-dev/themes/default/template/controllers/products/helpers/tree/tree_associated_categories.tpl +++ b/admin-dev/themes/default/template/controllers/products/helpers/tree/tree_associated_categories.tpl @@ -38,6 +38,14 @@ function() { $(this).prop("checked", true); + + $('select#id_category_default').append(''); + if ($('select#id_category_default option').length > 0) + { + $('select#id_category_default').closest('.form-group').show(); + $('#no_default_category').hide(); + } + $(this).parent().addClass("tree-selected"); } ); @@ -49,6 +57,14 @@ function() { $(this).prop("checked", false); + + $('select#id_category_default option[value='+$(this).val()+']').remove(); + if ($('select#id_category_default option').length == 0) + { + $('select#id_category_default').closest('.form-group').hide(); + $('#no_default_category').show(); + } + $(this).parent().removeClass("tree-selected"); } ); @@ -112,5 +128,29 @@ } ); {/if} + + $("#{$id}").find(":input[type=checkbox]").click( + function() + { + if ($(this).prop("checked")) + { + $('select#id_category_default').append(''); + if ($('select#id_category_default option').length > 0) + { + $('select#id_category_default').closest('.form-group').show(); + $('#no_default_category').hide(); + } + } + else + { + $('select#id_category_default option[value='+$(this).val()+']').remove(); + if ($('select#id_category_default option').length == 0) + { + $('select#id_category_default').closest('.form-group').hide(); + $('#no_default_category').show(); + } + } + } + ); }); \ No newline at end of file diff --git a/admin-dev/themes/default/template/helpers/tree/tree_node_item_checkbox.tpl b/admin-dev/themes/default/template/helpers/tree/tree_node_item_checkbox.tpl index ca0235597..f7f6f17d8 100644 --- a/admin-dev/themes/default/template/helpers/tree/tree_node_item_checkbox.tpl +++ b/admin-dev/themes/default/template/helpers/tree/tree_node_item_checkbox.tpl @@ -23,9 +23,9 @@ * International Registered Trademark & Property of PrestaShop SA *}
  • - + + + + +
  • \ No newline at end of file From acdb7b0c1306428c3026808cc991dd809c045f4b Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 25 Nov 2013 16:13:19 +0100 Subject: [PATCH 20/24] // Fixed invisible chars in CSV examples --- docs/csv_import/categories_import.csv | 2 +- docs/csv_import/combinations_import.csv | 2 +- docs/csv_import/products_import.csv | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/csv_import/categories_import.csv b/docs/csv_import/categories_import.csv index 96024f6e5..8a2e353b9 100644 --- a/docs/csv_import/categories_import.csv +++ b/docs/csv_import/categories_import.csv @@ -1,4 +1,4 @@ -ID;Active (0/1);Name *;Parent category;Root category (0/1) ;Description;Meta title;Meta keywords;Meta description;URL rewritten;Image URL +ID;Active (0/1);Name *;Parent category;Root category (0/1);Description;Meta title;Meta keywords;Meta description;URL rewritten;Image URL 10;1;iPods;Home;0;Now that you can buy movies from the iTunes Store and sync them to your iPod, the whole world is your theater.;Meta title-iPods;Meta keywords-iPods;Meta description-iPods;music-ipods;http://yourlinktotheimage.com/img1000.jpg 11;1;Accessories;Home;0;Wonderful accessories for your iPod;Meta title-Accessories;Meta keywords-Accessories;Meta description-Accessories;accessories-ipod;http://yourlinktotheimage.com/img1001.jpg 12;1;Laptops;Home;0;The latest Intel processor, a bigger hard drive, plenty of memory, and even more new features all fit inside just one liberating inch. The new Mac laptops have the performance, power, and connectivity of a desktop computer. Without the desk part.;Meta title-Laptops;Meta keywords-Laptops;Meta description-Laptops;laptops;http://yourlinktotheimage.com/img1002.jpg diff --git a/docs/csv_import/combinations_import.csv b/docs/csv_import/combinations_import.csv index e8373297b..ffdcc861f 100644 --- a/docs/csv_import/combinations_import.csv +++ b/docs/csv_import/combinations_import.csv @@ -1,4 +1,4 @@ -Product ID*;Attribute (Name:Type:Position)*;Value (Value:Position)*;Supplier reference;Reference;EAN13;UPC;Wholesale price;Impact on price;Ecotax;Quantity;Minimal quantity;Impact on weight;Default (0 = No, 1 = Yes);Image position;Image URL;Delete existing images (0 = No, 1 = Yes);ID / Name of shop  +Product ID*;Attribute (Name:Type:Position)*;Value (Value:Position)*;Supplier reference;Reference;EAN13;UPC;Wholesale price;Impact on price;Ecotax;Quantity;Minimal quantity;Impact on weight;Default (0 = No, 1 = Yes);Image position;Image URL;Delete existing images (0 = No, 1 = Yes);ID / Name of shop 1;Color:color:0, Disk space:select:1;Blue:0, 16GB:1;RF-Nano-Blue-16GB;RP-Nano-Blue-16GB;0000080446392;;100;40;;10;1;0;0;1;http://youdomain.com/img.jpg;1; 1;Color:color:0, Disk space:select:1;Blue:0, 8GB:1;RF-Nano-Blue-8GB;RP-Nano-Blue-8GB;0000080446393;;80;0;;10;1;0;0;2;http://youdomain.com/img.jpg;1; 1;Color:color:0, Disk space:select:1;Yellow:0, 16GB:1;RF-Nano-Yellow-16GB;RP-Nano-Yellow-16GB;0000080446394;;100;40;;10;1;0;0;3;http://youdomain.com/img.jpg;1; diff --git a/docs/csv_import/products_import.csv b/docs/csv_import/products_import.csv index 4d5d58c65..ed03aaa89 100644 --- a/docs/csv_import/products_import.csv +++ b/docs/csv_import/products_import.csv @@ -1,4 +1,4 @@ -ID;Active (0/1);Name *;Categories (x,y,z...);Price tax excluded or Price tax included;Tax rules ID;Wholesale price;On sale (0/1);Discount amount;Discount percent;Discount from (yyyy-mm-dd);Discount to (yyyy-mm-dd);Reference #;Supplier reference #;Supplier;Manufacturer;EAN13;UPC;Ecotax;Width;Height;Depth;Weight;Quantity;Minimal quantity;Visibility;Additional shipping cost;Unity;Unit price ratio;Short description;Description;Tags (x,y,z...);Meta title;Meta keywords;Meta description;URL rewritten;Text when in stock;Text when backorder 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;Customizable (0 = No, 1 = Yes);Uploadable files (0 = No, 1 = Yes);Text fields (0 = No, 1 = Yes);Out_of_stock;Advanced stock management;ID / Name of shop  +ID;Active (0/1);Name *;Categories (x,y,z...);Price tax excluded or Price tax included;Tax rules ID;Wholesale price;On sale (0/1);Discount amount;Discount percent;Discount from (yyyy-mm-dd);Discount to (yyyy-mm-dd);Reference #;Supplier reference #;Supplier;Manufacturer;EAN13;UPC;Ecotax;Width;Height;Depth;Weight;Quantity;Minimal quantity;Visibility;Additional shipping cost;Unity;Unit price ratio;Short description;Description;Tags (x,y,z...);Meta title;Meta keywords;Meta description;URL rewritten;Text when in stock;Text when backorder 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;Customizable (0 = No, 1 = Yes);Uploadable files (0 = No, 1 = Yes);Text fields (0 = No, 1 = Yes);Out_of_stock;Advanced stock management;ID / Name of shop 1;1;iPod Nano;iPods;100;1;80;1;;5.5;2013-06-01;2018-12-31;RP-demo_1;RF-demo_1;Applestore;Apple;1234567890123;;1;0.6;0.2;0.4;0.068357;160;1;;;;;

    New design.

    ;

    New design.

    ;apple, ipod, nano;Meta title-Nano;Meta keywords-Nano;Meta description-Nano;iPod-Nano;In Stock;Current supply. Ordering availlable;1;2013-03-01;2013-01-01;1;http://localhost/prestashop_1.5.6.0/img/p/1/5/15.jpg;0;;0;new;0;0;0;0;0; 2;1;iPod shuffle;iPods;60;1;40;1;;;2013-06-01;2018-12-31;RP-demo_2;RF-demo_2;Applestore;Apple;1234567890123;;1;0.1;0.1;0.1;0.027563;120;1;both;;;;

    New design.

    ;

    New design.

    ;ipod, shuffle;Meta title-Shuffle;Meta keywords-Shuffle;Meta description-Shuffle;iPod-shuffle;In Stock;Current supply. Ordering availlable;1;2013-03-01;2013-01-02;1;http://localhost/prestashop_1.5.6.0/img/p/2/3/23.jpg;0;;0;new;0;0;0;0;0; 3;1;MacBook Air;Laptops;1500;1;1000;1;100;;2013-06-01;2018-12-31;RP-demo_3;RF-demo_3;Applestore;Apple;1234567890123;;2;1.31;0.3;1;2.976846;400;1;catalog;;;;

    New design.

    ;

    New design.

    ;MacBook, Air;Meta title-McBookAir;Meta keywords-McBookAir;Meta description-McBookAir;MacBook-Air;In Stock;Current supply. Ordering availlable;1;2013-03-01;2013-01-03;1;http://localhost/prestashop_1.5.6.0/img/p/1/1.jpg;1;;0;new;0;0;0;0;0; From 375981378fbea4a373c5e0feea49eeabb84fafc9 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Mon, 25 Nov 2013 16:44:08 +0100 Subject: [PATCH 21/24] // typo --- js/admin-products.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/admin-products.js b/js/admin-products.js index d2bb9d835..f4ed2d7e5 100644 --- a/js/admin-products.js +++ b/js/admin-products.js @@ -145,7 +145,6 @@ product_tabs['Combinations'] = new function(){ this.bindDefault = function(){ $('table[id=combinations-list]').delegate('a.default', 'click', function(e){ e.preventDefault(); - console.log('ok'); self.defaultProductAttribute(this.href, this); }); }; From a98002083f076f5d74b7bc6621a28163c4a39a23 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 25 Nov 2013 16:45:26 +0100 Subject: [PATCH 22/24] // Now you can click on folder icon to expand or collapse --- admin-dev/themes/default/js/tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-dev/themes/default/js/tree.js b/admin-dev/themes/default/js/tree.js index 976492e39..e9b440542 100644 --- a/admin-dev/themes/default/js/tree.js +++ b/admin-dev/themes/default/js/tree.js @@ -13,7 +13,7 @@ Tree.prototype = { var that = $(this); - this.$element.find("label.tree-toggler").click( + this.$element.find("label.tree-toggler, .icon-folder-close, .icon-folder-open").click( function () { if ($(this).parent().parent().children("ul.tree").is(":visible")) From 553568a72da4b4c44ad1393664e2c2e4b3cc5934 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 25 Nov 2013 17:06:13 +0100 Subject: [PATCH 23/24] // Change message for permissions in the installer --- install-dev/controllers/http/system.php | 29 ++++++++++++++----------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/install-dev/controllers/http/system.php b/install-dev/controllers/http/system.php index 72f7377a4..1f0c04462 100644 --- a/install-dev/controllers/http/system.php +++ b/install-dev/controllers/http/system.php @@ -74,6 +74,9 @@ class InstallControllerHttpSystem extends InstallControllerHttp if (!isset($this->tests['optional'])) $this->tests['optional'] = $this->model_system->checkOptionalTests(); + if (!is_callable('getenv') || !($user = @getenv('APACHE_RUN_USER'))) + $user = 'Apache'; + // Generate display array $this->tests_render = array( 'required' => array( @@ -96,21 +99,21 @@ class InstallControllerHttpSystem extends InstallControllerHttp ) ), array( - 'title' => $this->l('Recursive write permissions on files and folders:'), + 'title' => $this->l('Permissions on files and folders'), 'success' => 1, 'checks' => array( - 'config_dir' => '~/config/', - 'cache_dir' => '~/cache/', - 'log_dir' => '~/log/', - 'img_dir' => '~/img/', - 'mails_dir' => '~/mails/', - 'module_dir' => '~/modules/', - 'theme_lang_dir' => '~/themes/default/lang/', - 'theme_pdf_lang_dir' => '~/themes/default/pdf/lang/', - 'theme_cache_dir' => '~/themes/default/cache/', - 'translations_dir' => '~/translations/', - 'customizable_products_dir' => '~/upload/', - 'virtual_products_dir' => '~/download/' + 'config_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/config/'), + 'cache_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/cache/'), + 'log_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/log/'), + 'img_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/img/'), + 'mails_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/mails/'), + 'module_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/modules/'), + 'theme_lang_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/themes/default/lang/'), + 'theme_pdf_lang_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/themes/default/pdf/lang/'), + 'theme_cache_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/themes/default/cache/'), + 'translations_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/translations/'), + 'customizable_products_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/upload/'), + 'virtual_products_dir' => $this->l('Recursive write permissions for %1$s user on %2$s', $user, '~/download/') ) ), ), From 89f794ae5ebd9bd874f4b36dcc8e6fda1191bd36 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 25 Nov 2013 17:09:08 +0100 Subject: [PATCH 24/24] // Missing Typo --- modules/blocklayered/blocklayered.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php index 58a61fc64..40fbd4521 100644 --- a/modules/blocklayered/blocklayered.php +++ b/modules/blocklayered/blocklayered.php @@ -1437,7 +1437,7 @@ class BlockLayered extends Module //