From 6a54f6efd525b09bad7badefcdabbdead39ab981 Mon Sep 17 00:00:00 2001
From: PhpMadman
Date: Tue, 6 Aug 2013 15:32:30 +0200
Subject: [PATCH 1/6] [*] BO: Add reference to FrontController
---
classes/controller/FrontController.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/classes/controller/FrontController.php b/classes/controller/FrontController.php
index 14dc91682..9a6c434a2 100755
--- a/classes/controller/FrontController.php
+++ b/classes/controller/FrontController.php
@@ -806,7 +806,7 @@ class FrontControllerCore extends Controller
// 'orderwaydefault' => Tools::getProductsOrder('way'),
$stock_management = Configuration::get('PS_STOCK_MANAGEMENT') ? true : false; // no display quantity order if stock management disabled
- $order_by_values = array(0 => 'name', 1 => 'price', 2 => 'date_add', 3 => 'date_upd', 4 => 'position', 5 => 'manufacturer_name', 6 => 'quantity');
+ $order_by_values = array(0 => 'name', 1 => 'price', 2 => 'date_add', 3 => 'date_upd', 4 => 'position', 5 => 'manufacturer_name', 6 => 'quantity', 7 => 'reference');
$order_way_values = array(0 => 'asc', 1 => 'desc');
$this->orderBy = Tools::strtolower(Tools::getValue('orderby', $order_by_values[(int)Configuration::get('PS_PRODUCTS_ORDER_BY')]));
$this->orderWay = Tools::strtolower(Tools::getValue('orderway', $order_way_values[(int)Configuration::get('PS_PRODUCTS_ORDER_WAY')]));
From 5e73f0cb0733ccc4304a641d0e10bd4e1a08f443 Mon Sep 17 00:00:00 2001
From: PhpMadman
Date: Tue, 6 Aug 2013 15:34:58 +0200
Subject: [PATCH 2/6] [*] BO: Add reference to Options
---
controllers/admin/AdminPPreferencesController.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/controllers/admin/AdminPPreferencesController.php b/controllers/admin/AdminPPreferencesController.php
index c3cb9a352..87ab807c0 100644
--- a/controllers/admin/AdminPPreferencesController.php
+++ b/controllers/admin/AdminPPreferencesController.php
@@ -117,6 +117,7 @@ class AdminPPreferencesControllerCore extends AdminController
array('id' => '4', 'name' => $this->l('Position inside category')),
array('id' => '5', 'name' => $this->l('Manufacturer')),
array('id' => '6', 'name' => $this->l('Product quantity'))
+ array('id' => '7', 'name' => $this->l('Prodct reference'))
),
'identifier' => 'id'
),
From cd254f8795dadfeb2d75d3f4624a27a23f8dd55e Mon Sep 17 00:00:00 2001
From: PhpMadman
Date: Tue, 6 Aug 2013 15:37:10 +0200
Subject: [PATCH 3/6] [*] FO : Add reference sort to theme
---
themes/default/mobile/category-product-sort.tpl | 3 +++
1 file changed, 3 insertions(+)
diff --git a/themes/default/mobile/category-product-sort.tpl b/themes/default/mobile/category-product-sort.tpl
index 276dd78cc..37b6f9176 100644
--- a/themes/default/mobile/category-product-sort.tpl
+++ b/themes/default/mobile/category-product-sort.tpl
@@ -64,6 +64,9 @@
{if !$PS_CATALOG_MODE}
{/if}
+
+
+
From 598a5b31887908c3b8bb5bf8c6afc7e3ec5a4181 Mon Sep 17 00:00:00 2001
From: PhpMadman
Date: Tue, 6 Aug 2013 15:38:25 +0200
Subject: [PATCH 4/6] [*] FO : Add reference sort to theme
---
themes/default/product-sort.tpl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/themes/default/product-sort.tpl b/themes/default/product-sort.tpl
index 874cd0267..e7ea10f7f 100644
--- a/themes/default/product-sort.tpl
+++ b/themes/default/product-sort.tpl
@@ -67,6 +67,8 @@ $(document).ready(function()
{if !$PS_CATALOG_MODE}
{/if}
+
+
From d4270289c19f39fc92d3b6e2c8846cb33702a0d5 Mon Sep 17 00:00:00 2001
From: PhpMadman
Date: Tue, 6 Aug 2013 16:06:03 +0200
Subject: [PATCH 5/6] Update category-product-sort.tpl
---
themes/default/mobile/category-product-sort.tpl | 1 -
1 file changed, 1 deletion(-)
diff --git a/themes/default/mobile/category-product-sort.tpl b/themes/default/mobile/category-product-sort.tpl
index 37b6f9176..4fe5fcc85 100644
--- a/themes/default/mobile/category-product-sort.tpl
+++ b/themes/default/mobile/category-product-sort.tpl
@@ -66,7 +66,6 @@
{/if}
-
From e4a42ab2b11423a9ea4d1fdeb3e9ea7d2047f013 Mon Sep 17 00:00:00 2001
From: PhpMadman
Date: Tue, 6 Aug 2013 16:08:09 +0200
Subject: [PATCH 6/6] Update AdminPPreferencesController.php
---
controllers/admin/AdminPPreferencesController.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/controllers/admin/AdminPPreferencesController.php b/controllers/admin/AdminPPreferencesController.php
index 87ab807c0..84067fc2d 100644
--- a/controllers/admin/AdminPPreferencesController.php
+++ b/controllers/admin/AdminPPreferencesController.php
@@ -117,7 +117,7 @@ class AdminPPreferencesControllerCore extends AdminController
array('id' => '4', 'name' => $this->l('Position inside category')),
array('id' => '5', 'name' => $this->l('Manufacturer')),
array('id' => '6', 'name' => $this->l('Product quantity'))
- array('id' => '7', 'name' => $this->l('Prodct reference'))
+ array('id' => '7', 'name' => $this->l('Product reference'))
),
'identifier' => 'id'
),