Skip to main content

Re: Set notify customers to Yes by default?

More
15 years 5 months ago - 15 years 5 months ago #15676 by mett
Hello,

Nicolas, can you tell me please how to set notification to Yes by default? I would like to force editors to send notifications to customers when order status was changed, sometime they forget to do it. I found code below, but i don't know how to change it:

<?php echo JHTML::_('select.booleanlist', "data[order][history][history_notified]" , 'onchange="var display=\'none\'; if(this.value==1)display=\'\';document.getElementById(\'notification_area\').style.display=display;"',0 ); ?>

Thank you
Last edit: 15 years 5 months ago by mett.

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #15677 by nicolas
Hi,

You need to change the 0 at the end of that line to 1.
You also need to remove the code:
style="display:none"
from the line:
<td colspan="2" id="notification_area" style="display:none">

For others: these modifications are to be done in the file notification of the view order via the menu Display->Views.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #36450 by jgold501
i did this but it doesnt seem to force it to yes, its still no

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #36465 by nicolas
Make sure that you're editing it for the correct template of your back end.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #162665 by mujahidriaz
Nicolas could you please tell me in which file i can find the above mentioned line of code.

Please reply quick.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #162679 by nicolas
Hi,

If you're using a recent version of HikaShop, the code modification is totally different.
It also depends where you want to change that.
If it's in the order details page for the order status, it's the file "show_general" that you want to edit via the menu Display>views to change the code:
Code:
<input type="checkbox" id="data[notify]" name="data[notify]"/>
to:
Code:
<input type="checkbox" id="data[notify]" name="data[notify]" checked=checked/>
If it's on the orders listing, it's the file "notification" that you want to edit via the menu Display>views to change the code as explained in my first message on this thread: www.hikashop.com/forum/4-how-to/15676-se...y-default.html#15677

Please Log in or Create an account to join the conversation.

More
4 years 2 weeks ago #344886 by nico.van.leeuwen
Hi, is this modification usable in up-to-date HikaShop versions ?

Please Log in or Create an account to join the conversation.

More
4 years 2 weeks ago #344888 by nicolas
Hi,

Yes, both modifications are still valid for HikaShop 4.6.1 and should be for the forseeable future.

Please Log in or Create an account to join the conversation.

Time to create page: 0.194 seconds
Powered by Kunena Forum