Klaus Boutik Posted July 11, 2011 Share Posted July 11, 2011 BonjourLorsque l'on veut envoyer un message à un client ayant passé commande, dans le formulaire, il y a le choix suivant :montrer au client : "Oui" ou "Non" avec "Non" coché par défautJe souhaiterais que "Oui" soit coché par défautEst ce réalisable?Merci Link to comment Share on other sites More sharing options...
matt.webcroisieres Posted July 11, 2011 Share Posted July 11, 2011 Il faut que dans le fichier tpl, tu changes dans ton cheackbox le "checked" que tu supprimes pour le non et que tu rajoutes pour le oui. Link to comment Share on other sites More sharing options...
Klaus Boutik Posted July 11, 2011 Author Share Posted July 11, 2011 Merci mais pas tout compris et je débuteQuel fichier Tpl ? Link to comment Share on other sites More sharing options...
matt.webcroisieres Posted July 11, 2011 Share Posted July 11, 2011 Dans le fichier tpl qui corresponds à ton module...pour que la checkbox soit coché par desfaut, il faut mettre un "checked".exemple : <input type="checkbox" name="non" value="non" checked>Donc à partir de là, tu l'enlèves et tu le rajoues sur le oui. Link to comment Share on other sites More sharing options...
Klaus Boutik Posted July 11, 2011 Author Share Posted July 11, 2011 oui merci j'ai compris mais dans quel fichier tpl, il en a 50 ? Link to comment Share on other sites More sharing options...
matt.webcroisieres Posted July 11, 2011 Share Posted July 11, 2011 Après je ne sais pas qu'elle module c'est, cherche les modules correspondant tu peux t'aider avec firebug, regarde les identifiants des div ca pourra t'aider. Link to comment Share on other sites More sharing options...
tristars Posted August 26, 2014 Share Posted August 26, 2014 Bonjour, Une solution a t elle été trouvé pour mettre le "OUI" par défaut lors de l'envoi d'un nouveau message dans une commande ? Prestashop 1.4.10.0 Merci beaucoup A++ Link to comment Share on other sites More sharing options...
p.guerin Posted September 8, 2015 Share Posted September 8, 2015 Quelqu'un...? Link to comment Share on other sites More sharing options...
Narobaz Posted February 2, 2017 Share Posted February 2, 2017 RDV ici : ton-site/ton-dossier-admin/themes/default/template/controllers/orders/helpers/view/view.tplIl suffit juste de deplacer le code checked="checked". Pour cela, vers la ligne 840, il faut remplacer le code suivant : <label class="control-label col-lg-3">{l s='Display to customer?'}</label> <div class="col-lg-9"> <span class="switch prestashop-switch fixed-width-lg"> <input type="radio" name="visibility" id="visibility_on" value="0" /> <label for="visibility_on"> {l s='Yes'} </label> <input type="radio" name="visibility" id="visibility_off" value="1" checked="checked" /> <label for="visibility_off"> {l s='No'} </label> par <label class="control-label col-lg-3">{l s='Display to customer?'}</label> <div class="col-lg-9"> <span class="switch prestashop-switch fixed-width-lg"> <input type="radio" name="visibility" id="visibility_on" value="0" checked="checked" /> <label for="visibility_on"> {l s='Yes'} </label> <input type="radio" name="visibility" id="visibility_off" value="1" /> <label for="visibility_off"> {l s='No'} </label> Bye 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