DevNet Posted March 23, 2011 Share Posted March 23, 2011 Bonjour,Juste en passant parce-que je suis dessus. Le méthode pour choisir/ajouter l'adresse de facturation/livraison n'est pas très logique. Le traitement donne la possibilité de mettre la même adresse ou non en facturation/livraison, même s'il n'existe qu'une seule adresse d'enregistrée. La case à coché ne sert à rien, et le slide d'ajout d'adresse non plus, puisqu'il existe déjà cette option plus bas.Pour ceux qui sont intéressés, voilà une petite correction qui rend la séquence plus ergonomique et logique.Dans /themes/prestashop/order-address.tpl (cf. 1.4.0.17), il sera plus logique ergonomiquement parlant de remplacer le code suivant, de ligne 66 à 81 : <input type="checkbox" name="same" id="addressesAreEquals" value="1">id_address_invoice == $cart->id_address_delivery || $addresses|@count == 1}checked="checked"{/if} /> {l s='Use the same address for billing.'} id_address_invoice == $cart->id_address_delivery}style="display: none;"{/if}> {if $addresses|@count > 1} {l s='Choose a billing address:'} {section loop=$addresses step=-1 name=address} id_address_invoice && $cart->id_address_delivery != $cart->id_address_invoice}selected="selected"{/if}>{$addresses[address].alias|escape:'htmlall':'UTF-8'} {/section} {else} getPageLink('address.php', true)}?back=order.php&step=1&select_address=1{if $back}&mod;={$back}{/if}" title="{l s='Add'}" class="button_large">{l s='Add a new address'} {/if} Par {if $addresses|@count > 1} <input type="checkbox" name="same" id="addressesAreEquals" value="1">id_address_invoice == $cart->id_address_delivery || $addresses|@count == 1}checked="checked"{/if} /> {l s='Use the same address for billing.'} id_address_invoice == $cart->id_address_delivery}style="display: none;"{/if}> {l s='Choose a billing address:'} {section loop=$addresses step=-1 name=address} id_address_invoice && $cart->id_address_delivery != $cart->id_address_invoice}selected="selected"{/if}>{$addresses[address].alias|escape:'htmlall':'UTF-8'} {/section} {/if} Bonne continuation 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now