Re: Set notify customers to Yes by default?

  • Posts: 126
  • Thank you received: 2
13 years 6 months ago #15676

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: 13 years 6 months ago by mett.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 6 months ago #15677

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.

  • Posts: 1
  • Thank you received: 0
12 years 9 months ago #36450

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 9 months ago #36465

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.

  • Posts: 6
  • Thank you received: 0
10 years 4 months ago #162665

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #162679

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:

<input type="checkbox" id="data[notify]" name="data[notify]"/>
to:
<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.

  • Posts: 290
  • Thank you received: 22
2 years 2 months ago #344886

Hi, is this modification usable in up-to-date HikaShop versions ?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344888

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.086 seconds
Powered by Kunena Forum