Voici le code dans mon tpl
{foreach from=$delivery_options item=carrier key=carrier_id} <div class="delivery-option pb-2 mb-2 border-bottom"> <div class="custom-control custom-radio"> <input class="custom-control-input" type="radio" name="delivery_option[{$id_address}]" id="delivery_option_{$carrier.id}" value="{$carrier_id}" {if $delivery_option == $carrier_id}checked{/if}> <label class="custom-control-label d-block d-sm-flex justify-content-between align-items-center" for="delivery_option_{$carrier.id}"> {*<div style="position: absolute;"><img class="hidden" src="{$urls.img_url}ship/{$carrier.id}.jpg" /></div>*} <div class="d-flex flex-column" {*style="margin-left: 4rem;"*}> <span class="text-dark font-size-md font-weight-medium">{$carrier.name}</span> <span class="text-muted carrier-delay">{$carrier.delay}</span> </div> <span class="text-accent font-size-md"> {if !$display_taxe_label} {str_replace("TTC", "HT", $carrier.price)} {else} {$carrier.price} {/if} </span> </label> </div> {if $carrier.extraContent} <div class="carrier-extra-content js-carrier-extra-content" {if $delivery_option != $carrier_id}style="display: none;"{/if}> {$carrier.extraContent nofilter} </div> {/if} </div> {/foreach}
est-ce que je suis sur le bon chemin ? 1, 2 ,3 étant mes transporteurs
{foreach from=$delivery_options item=carrier key=carrier_id}
{if $delivery_option && ($carrier.id == 1 || $carrier.id == 2 || $carrier.id == 3)}
Merci pour votre aide