Jump to content

Remove New message to customer ? Yes or No


chahidkhan
 Share

Recommended Posts

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



 

Share this post


Link to post
Share on other sites

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 by cristic (see edit history)
  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

  • 9 months later...
  • 4 years later...
  • 1 year later...
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?

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