AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: buddahboy on November 22, 2013, 10:23:18 AM

Title: SOLVED - How can I make notify customer the default when order status changes
Post by: buddahboy on November 22, 2013, 10:23:18 AM
Good Day,

When updating an order from processing to shipped there is a checkbox on the status and comments page - one field is "notify customer" and the default is unchecked and I would like the default to be checked so the system will send the mail automatically.  Right below is a field for "append comments" which is always checked so it's a default - that is what I require with "notify customer"

Thanks much
Ron
Title: Re: How can I make notify customer the default when order status changes
Post by: abantecart on November 23, 2013, 09:37:40 AM
Edit admin controller file:
/admin/controller/pages/sale/order.php

Find:

$this->data['form']['notify'] = $form->getFieldHtml(array(
    'type' => 'checkbox',
    'name' => 'notify',
    ));


Add:
'value' => 1,

You will have:


$this->data['form']['notify'] = $form->getFieldHtml(array(
    'type' => 'checkbox',
    'name' => 'notify',
    'value' => 1,
    ));

Title: Re: How can I make notify customer the default when order status changes
Post by: buddahboy on November 23, 2013, 10:36:54 AM
Perfect - thanks a bunch, very much appreciated yet once again.  Have a coffee break knowing you do a job well done. 

All the best,
Ron