Jump to content

impossible d'utiliser la fonction permettant de demander un emballage cadeau


Recommended Posts

Bonsoir à tous,

 

depuis quelques temps, (passage en 1.5.6.3 je pense) le choix de recevoir la commande en emballage cadeau n'est plus proposé.

 

En recherchant dans le code, je pense que cette partie est gérée par le fichier order_carrier.tpl et ce bout de code (Lignes 263 à 282)

 

        {if $giftAllowed}
            <h3 class="gift_title">{l s='Gift'}</h3>
            <p class="checkbox">
            <input type="checkbox" name="gift" id="gift" value="1" {if $cart->gift == 1}checked="checked"{/if} onclick="$('#gift_div').toggle('slow');"/>
            <label for="gift">{l s='I would like my order to be gift-wrapped.'}</label>
            {if $gift_wrapping_price > 0}
                ({l s='Additional cost of'}
                <span class="price" id="gift-price">
                    {if $priceDisplay == 1}{convertPrice price=$total_wrapping_tax_exc_cost}{else}{convertPrice price=$total_wrapping_cost}{/if}
                </span>
                {if $use_taxes}{if $priceDisplay == 1} {l s='(tax excl.)'}{else} {l s='(tax incl.)'}{/if}{/if})
            {/if}
        </p>
        <p id="gift_div" class="textarea">
            <label for="gift_message">{l s='If you wish, you can add a note to the gift :'}</label>
            <textarea rows="5" cols="35" id="gift_message" name="gift_message">{$cart->gift_message|escape:'htmlall':'UTF-8'}</textarea>
        </p>

        {/if}
    {/if}
{/if}

 

 

Dès que je mets la partie de code en rouge en commentaire, ça fonctionne sinon, rien ne s'affiche

 

Avez vous une piste? je ne trouve pas d’où peut venir l'erreur

 

merci d'avance

 

bonne soirée

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...