From 173ce6c1c4257cf024cc159f8fa3bcc300adf4e4 Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Tue, 4 May 2021 16:33:21 +0200 Subject: [PATCH] Modif sur le module DigressivePrice : on rajoute 2 champs pour permettre la saisie des montants en TTC --- .../I18n/backOffice/default/fr_FR.php | 5 +- .../default/product-tab-content-hook.html | 50 +++++++++++++++++-- 2 files changed, 51 insertions(+), 4 deletions(-) diff --git a/local/modules/DigressivePrice/I18n/backOffice/default/fr_FR.php b/local/modules/DigressivePrice/I18n/backOffice/default/fr_FR.php index d5092b00..6000e105 100644 --- a/local/modules/DigressivePrice/I18n/backOffice/default/fr_FR.php +++ b/local/modules/DigressivePrice/I18n/backOffice/default/fr_FR.php @@ -20,5 +20,8 @@ return array( 'The end of range must be greater than the beginning' => 'La quantité de fin de tranche doit être inférieure à celle de début', 'Your new range surrounds an existing one' => 'Votre tranche de quantités en englobe une autre', 'Your new range begins in another one' => 'Votre tranche de quantités débute dans une autre', - 'Your new range ends in another one' => 'Votre tranche de quantités se termine dans une autre' + 'Your new range ends in another one' => 'Votre tranche de quantités se termine dans une autre', + + 'Price with taxes' => 'Prix TTC', + 'Sale price with taxes' => 'Prix promo TTC', ); diff --git a/local/modules/DigressivePrice/templates/backOffice/default/product-tab-content-hook.html b/local/modules/DigressivePrice/templates/backOffice/default/product-tab-content-hook.html index e47f1030..ac6f7260 100644 --- a/local/modules/DigressivePrice/templates/backOffice/default/product-tab-content-hook.html +++ b/local/modules/DigressivePrice/templates/backOffice/default/product-tab-content-hook.html @@ -18,14 +18,20 @@ {form name="digressiveprice.delete"} {if $form_error}
{$form_error_message}
{/if} {/form} - + + {loop name="tax-loop" type="tax" country="64" tax_rule="{product attr="tax_rule_id"}"} + + {/loop} + + + @@ -37,6 +43,8 @@ {form name="digressiveprice.update"} + {assign var="digressiveId" value="$ID"} + {form_hidden_fields form=$form} {form_field form=$form field="id"} @@ -66,19 +74,32 @@ + + + {/loop} @@ -167,4 +188,27 @@
{intl l="From" d="digressiveprice.bo.default"} {intl l="To" d="digressiveprice.bo.default"} {intl l="Price w/o taxes" d="digressiveprice.bo.default"}{intl l="Price with taxes" d="digressiveprice.bo.default"} {intl l="Sale price w/o taxes" d="digressiveprice.bo.default"}{intl l="Sale price with taxes" d="digressiveprice.bo.default"}  
{form_field form=$form field="price"} - + {$SYMBOL} {/form_field} + + + {$SYMBOL} + + {form_field form=$form field="promo"} - + {$SYMBOL} {/form_field} + + + {$SYMBOL} + +
+ + + {/if}