- Posts: 126
- Thank you received: 2
Re: Set notify customers to Yes by default?
15 years 5 months ago - 15 years 5 months ago #15676
by mett
Set notify customers to Yes by default? was created 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
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.
15 years 5 months ago #15677
by nicolas
Replied by nicolas on topic Re: Set notify customers to Yes by default?
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.
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.
14 years 8 months ago #36450
by jgold501
Replied by jgold501 on topic Re: Set notify customers to Yes by default?
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.
14 years 8 months ago #36465
by nicolas
Replied by nicolas on topic Re: Set notify customers to Yes by default?
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.
Less
More
- Posts: 6
- Thank you received: 0
12 years 3 months ago #162665
by mujahidriaz
Replied by mujahidriaz on topic Re: Set notify customers to Yes by default?
Nicolas could you please tell me in which file i can find the above mentioned line of code.
Please reply quick.
Please reply quick.
Please Log in or Create an account to join the conversation.
12 years 3 months ago #162679
by nicolas
Replied by nicolas on topic Re: Set notify customers to Yes by default?
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:
to:
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
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]"/>
Code:
<input type="checkbox" id="data[notify]" name="data[notify]" checked=checked/>
Please Log in or Create an account to join the conversation.
4 years 2 weeks ago #344886
by nico.van.leeuwen
Replied by nico.van.leeuwen on topic Re: Set notify customers to Yes by default?
Hi, is this modification usable in up-to-date HikaShop versions ?
Please Log in or Create an account to join the conversation.
4 years 2 weeks ago #344888
by nicolas
Replied by nicolas on topic Re: Set notify customers to Yes by default?
Hi,
Yes, both modifications are still valid for HikaShop 4.6.1 and should be for the forseeable future.
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.213 seconds