From 6d3e9facfe3b2ec7fe7ec1dc8254cb8b7e685245 Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Sun, 16 Aug 2020 10:43:32 +0200 Subject: [PATCH] Modif du message en cas de stock bas --- local/I18n/fr_FR.php | 2 -- templates/frontOffice/boutique/I18n/fr_FR.php | 10 ++++------ templates/frontOffice/boutique/product.html | 12 ++++++------ 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/local/I18n/fr_FR.php b/local/I18n/fr_FR.php index 6ec63580..98c379b8 100644 --- a/local/I18n/fr_FR.php +++ b/local/I18n/fr_FR.php @@ -3,11 +3,9 @@ return [ 'fo.boutique' => [ 'Available' => 'Disponibilité', - 'Checkout' => 'Commander', 'Composez vos coffrets' => 'Composez vous-même votre panière', 'Composition' => 'Faites plaisir à vos proches', 'Description' => 'Plus d\'infos...', - 'Log out!' => 'Se déconnecter', 'Only In' => 'uniquement en pot de', 'Options' => 'Contenance du pot', 'Related' => 'En relation...', diff --git a/templates/frontOffice/boutique/I18n/fr_FR.php b/templates/frontOffice/boutique/I18n/fr_FR.php index 0cda3c7d..9161e53e 100644 --- a/templates/frontOffice/boutique/I18n/fr_FR.php +++ b/templates/frontOffice/boutique/I18n/fr_FR.php @@ -45,10 +45,10 @@ return array( 'Change my account information' => 'Modifier mes informations personnelles', 'Change my password' => 'Changer mon mot de passe', 'Check my order' => 'Vérifier ma commande', - 'Checkout' => 'Checkout', 'Choose your delivery address' => 'Choisissez une adresse de livraison', 'Choose your delivery method' => 'Choisissez votre moyen de livraison', 'Choose your payment method' => 'Choisissez votre moyen de paiement', + 'Click to apply coupon' => 'Cliquez sur le bouton "Ok" ci-dessous pour appliquer votre code promotion.', 'Code :' => 'Code :', 'Composez vos coffrets' => 'Composez vos coffrets', 'Composition' => 'Composition', @@ -82,6 +82,7 @@ return array( 'Edit' => 'Modifier', 'Edit this address' => 'Editer cette adresse', 'Estimated shipping ' => 'Estimation des frais de port', + 'Estimated weight %weight' => '(pour un poids total estimé à %weight kg)', 'Expected delivery date: %delivery_date' => 'Date de livraison estimée :', 'Forgot your Password?' => 'Mot de passe oublié ?', 'Free shipping' => 'Livraison gratuite', @@ -99,9 +100,9 @@ return array( 'Language' => 'Langue', 'Latest' => 'Nouveautés', 'Latest products' => 'Derniers produits', + 'Limited stock' => 'Stock limité', 'List' => 'Liste', 'List of orders' => 'Liste de mes commandes', - 'Log out!' => 'Log out!', 'Login' => 'Connexion', 'Login Information' => 'Informations de connexion', 'Main Address' => 'Adresse Principale', @@ -133,7 +134,7 @@ return array( 'Order details %ref' => 'Détail de la commande %ref', 'Order number' => 'Commande numéro', 'Orders over $50' => 'Commande supérieure à 50€', - 'Out of Stock' => 'Hors stock', + 'Out of Stock' => 'Victime de son succès', 'PDF invoice' => 'Facture PDF', 'Pagination' => 'Pagination', 'Password' => 'Mot de passe', @@ -262,7 +263,4 @@ return array( 'per page' => 'par page', 'update' => 'mettre à jour', 'with:' => 'avec :', - - 'Click to apply coupon' => 'Cliquez sur le bouton "Ok" ci-dessous pour appliquer votre code promotion.', - 'Estimated weight %weight' => '(pour un poids total estimé à %weight kg)', ); diff --git a/templates/frontOffice/boutique/product.html b/templates/frontOffice/boutique/product.html index ea1e83ba..8ac6b571 100644 --- a/templates/frontOffice/boutique/product.html +++ b/templates/frontOffice/boutique/product.html @@ -123,7 +123,7 @@

{$TITLE}

{loop name="brand_info" type="brand" product={$ID} limit="1"} -

{$TITLE}

+

{$TITLE}

{/loop} {if $POSTSCRIPTUM}
@@ -157,7 +157,7 @@ - {if {$QUANTITY} <= {config key="thecoredev_seuil_alerte_stock" default="1"}} + {if {$QUANTITY} <= {config key="thecoredev_seuil_alerte_stock" default="1"} && ({$QUANTITY} > 0)} {intl l='Limited stock' d='prixdegressifs'} {/if} @@ -172,7 +172,7 @@ {* List of condition : NewCondition, DamagedCondition, UsedCondition, RefurbishedCondition *} {* List of currency : The currency used to describe the product price, in three-letter ISO format. *} - + {intl l="Special Price:"} {format_money number=$TAXED_PROMO_PRICE symbol={currency attr="symbol"}} @@ -190,7 +190,7 @@
{form name="thelia.cart.add" } -
+ {form_hidden_fields} @@ -232,7 +232,7 @@
{form_field field='quantity'} -
+
{if $error } @@ -384,7 +384,7 @@ // Product sale elements var PSE_FORM = true; var PSE_COUNT = {$pse_count}; - {if $check_availability == 0 || $product_virtual == 1 } + {if ($check_availability == 0) || ($product_virtual == 1) } var PSE_CHECK_AVAILABILITY = false; {else} var PSE_CHECK_AVAILABILITY = true;