From 77a66c64fde672b85dac836023d97820ccf577e1 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Fri, 4 Nov 2011 15:53:53 +0000 Subject: [PATCH] [*] Core : Specific prices can now be applied to combinations git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9897 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/themes/template/products/prices.tpl | 24 ++++- classes/Combination.php | 8 ++ classes/Product.php | 3 +- classes/SpecificPrice.php | 22 +++-- controllers/admin/AdminProductsController.php | 56 +++++++++--- controllers/front/ProductController.php | 90 ++----------------- install-dev/sql/db.sql | 1 + install-dev/sql/upgrade/1.5.0.1.sql | 4 + themes/prestashop/js/product.js | 53 +++++++++-- themes/prestashop/product.tpl | 67 +++++++------- 10 files changed, 183 insertions(+), 145 deletions(-) diff --git a/admin-dev/themes/template/products/prices.tpl b/admin-dev/themes/template/products/prices.tpl index f36228a1b..9246b35ac 100644 --- a/admin-dev/themes/template/products/prices.tpl +++ b/admin-dev/themes/template/products/prices.tpl @@ -1,3 +1,9 @@ + {l s='Add a new specific price'} - + {if $combinations|@count != 0} + +
+ +
+ {/if}
{l s='to'} @@ -44,7 +60,11 @@