chahidkhan Posted October 15, 2014 Share Posted October 15, 2014 Hello , in back office when i want to send message to customer i get this option : Display to customer? Yes No I want to remove it and message will always display to customer , it means the answer always will be yes . please help me Thank you Link to comment Share on other sites More sharing options...
cristic Posted October 15, 2014 Share Posted October 15, 2014 (edited) In adminXXXX/themes/default/template/controllers/orders/helpers/view/view.tpl, change: <div class="form-group"> <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> <a class="slide-button btn"></a> </span> </div> </div> to <input type="hidden" name="visibility" value="1" /> If you just want it to be always Yes, but to be able to choose, change it to this instead: <div class="form-group"> <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="1" checked="checked" /> <label for="visibility_on"> {l s='Yes'} </label> <input type="radio" name="visibility" id="visibility_off" value="0" /> <label for="visibility_off"> {l s='No'} </label> <a class="slide-button btn"></a> </span> </div> </div> Edited October 15, 2014 by cristic (see edit history) 2 1 Link to comment Share on other sites More sharing options...
chahidkhan Posted October 15, 2014 Author Share Posted October 15, 2014 I want to send message directly to customer without choosing yes , i want to remove this option and message will display to customer , because i send too much messages and its very hard to choose always yes , if need much modifications i will choose ur solution .. Thank you for ur fast reply Link to comment Share on other sites More sharing options...
cristic Posted October 15, 2014 Share Posted October 15, 2014 Ok. Then go with my first option Link to comment Share on other sites More sharing options...
chahidkhan Posted October 15, 2014 Author Share Posted October 15, 2014 Great ! I'm trying to do it right now , Thanks again man Link to comment Share on other sites More sharing options...
chahidkhan Posted October 15, 2014 Author Share Posted October 15, 2014 It works , Thanks again Link to comment Share on other sites More sharing options...
sherafghanmalik Posted August 8, 2015 Share Posted August 8, 2015 I want to change the order message in view.tpl but my changes has no effects in backoffice. I manually cleared the cache and tried man things. needs help. Link to comment Share on other sites More sharing options...
imperator Posted April 22, 2020 Share Posted April 22, 2020 (edited) What's the point of default settings for NO ? Why i should write a message which I don't want send to customer ?? And in code above is bug. You shouldn't change value 1 to 0, only change checked... Edited April 22, 2020 by imperator (see edit history) Link to comment Share on other sites More sharing options...
mr_absinthe Posted March 21, 2022 Share Posted March 21, 2022 On 4/22/2020 at 1:38 PM, imperator said: What's the point of default settings for NO ? Why i should write a message which I don't want send to customer ?? I couldn't agree more and I would love to know the logic behind it (or rather not). Is there a solution for PrestaShop 1.7.8.5? 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