Création d'un module LivraisonForfaitaire pour pouvoir choisir les frais de livraisons sur les commandes passées depuis le backOffice

This commit is contained in:
2021-07-04 13:09:18 +02:00
parent 8992cbee62
commit ebb1376015
12 changed files with 245 additions and 23 deletions

View File

@@ -3,7 +3,7 @@
{if $smarty.get.back == '1'}
{$exclude = "0"}
{else}
{$exclude = "40"}
{$exclude = "40,48"}
{/if}
{form name="thelia.order.delivery"}
@@ -49,7 +49,17 @@
<td>
<div class="price">
{if $POSTAGE >= 0}
{format_money number=$POSTAGE symbol={currency attr='symbol'}}
{if $CODE eq "LivraisonForfaitaire"}
{assign var="montantsChaine" value={config key="livraisons_forfaitaires.montants"}|default:"0"}
{assign var="montantsTableau" value=";"|explode:"$montantsChaine"}
<select id="select-forfait" name="select-forfait">
{foreach from=$montantsTableau item=montant}
<option value="{$montant}">{format_money number="{$montant}" symbol={currency attr='symbol'}}</option>
{/foreach}
</select>
{else}
{format_money number=$POSTAGE symbol={currency attr='symbol'}}
{/if}
{else}
&nbsp;
{/if}