Jump to content

Message client : cocher "Oui" par défaut


Recommended Posts

Bonjour

Lorsque 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éfaut

Je souhaiterais que "Oui" soit coché par défaut
Est ce réalisable?
Merci

Share this post


Link to post
Share on other sites

  • 3 years later...
  • 1 year later...
  • 1 year later...

RDV ici : ton-site/ton-dossier-admin/themes/default/template/controllers/orders/helpers/view/view.tpl

Il 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

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More