From 6683903b1a85ef76ced9a2cb2bfc54a5fdb8678f Mon Sep 17 00:00:00 2001 From: lLefevre Date: Mon, 23 Apr 2012 13:41:36 +0000 Subject: [PATCH] [-] BO : Fix #PSFV-868 : Unity price can be set git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14815 b9a71923-0436-4b27-9f14-aed3839534dd --- .../default/template/controllers/products/prices.tpl | 9 ++------- controllers/admin/AdminProductsController.php | 7 ------- translations/fr/admin.php | 2 +- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/products/prices.tpl b/admin-dev/themes/default/template/controllers/products/prices.tpl index b4f65ead2..840d85d60 100644 --- a/admin-dev/themes/default/template/controllers/products/prices.tpl +++ b/admin-dev/themes/default/template/controllers/products/prices.tpl @@ -199,16 +199,11 @@ jQuery(document).ready(Customer.init); {$currency->prefix} {$currency->suffix} - {l s='/'} - + {l s='per'}  {if $ps_tax && $country_display_tax_label} {l s='or'} {$currency->prefix}0.00{$currency->suffix} - {l s='/'} {$product->unity} {l s='with tax'} + {l s='per'} {$product->unity} {l s='with tax'} {/if}

{l s='e.g. per lb'}

diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 104185a1c..4585d6422 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -2777,16 +2777,9 @@ class AdminProductsControllerCore extends AdminController $data->assign('ps_tax', Configuration::get('PS_TAX')); $data->assign('country_display_tax_label', $this->context->country->display_tax_label); - $unities = array( - 'PS_WEIGHT_UNIT' => Configuration::get('PS_WEIGHT_UNIT'), - 'PS_DISTANCE_UNIT' => Configuration::get('PS_DISTANCE_UNIT'), - 'PS_VOLUME_UNIT' => Configuration::get('PS_VOLUME_UNIT'), - 'PS_DIMENSION_UNIT' => Configuration::get('PS_DIMENSION_UNIT') - ); $data->assign(array( 'currency', $this->context->currency, 'product' => $product, - 'unities' => $unities, 'token' => $this->token )); diff --git a/translations/fr/admin.php b/translations/fr/admin.php index 38b24f357..ce117241b 100644 --- a/translations/fr/admin.php +++ b/translations/fr/admin.php @@ -2597,7 +2597,6 @@ $_LANGADM['AdminProducts6453b853979579ed50ec58e2e7d13816'] = 'Vous perdrez toute $_LANGADM['AdminProducts6492d670e42151cc37574d99f4071f85'] = 'Nom du fichier :'; $_LANGADM['AdminProducts64b53bc0cc0715cf944e23104df45d66'] = 'Produit dématérialisé (services, réservations et produits téléchargeables)'; $_LANGADM['AdminProducts6624493bea28e951b0e89cb12a324bcf'] = 'Est-ce un produit virtuel ?'; -$_LANGADM['AdminProducts6666cd76f96956469e7be39d750cc7d9'] = '/'; $_LANGADM['AdminProducts6844aa7b2ea9577a34cea194362d5509'] = 'dépasse le poids autorisé par le serveur, cette limite est fixée à'; $_LANGADM['AdminProducts686e697538050e4664636337cc3b834f'] = 'Créer'; $_LANGADM['AdminProducts694e8d1f2ee056f98ee488bdc4982d73'] = 'Quantité'; @@ -2867,6 +2866,7 @@ $_LANGADM['AdminProductsfb9244e71ff86107b58d0328f15fb9b1'] = 'Poids (du paquet) $_LANGADM['AdminProductsfb9500d8a4ef9a70c6a91cae122c7cba'] = 'Vous devez indiquer les fournisseurs associés à ce produit et le fournisseur par défaut avant de définir les références.'; $_LANGADM['AdminProductsfbd99ad01b92dbafc686772a39e3d065'] = 'UPC'; $_LANGADM['AdminProductsfc55a6e78b7d33b0241db646dc913ef9'] = 'Modifier cette déclinaison'; +$_LANGADM['AdminProductsfe3838c7c11aa406dd956566e17360d5'] = 'par'; $_LANGADM['AdminProductsfec264a44022140bb9724c19c8e954ab'] = 'Action non définie'; $_LANGADM['AdminProductsfee1ad396cfeab246802224002123f39'] = 'Modifier cette image de produit'; $_LANGADM['AdminProductsffac76aafed78da915f1440bc67b8166'] = 'Mettre un fichier en ligne depuis votre poste de travail';