Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

SOLVED - How can I make notify customer the default when order status changes

Started by buddahboy, November 22, 2013, 10:23:18 AM

Previous topic - Next topic

buddahboy

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
AbanteCart is one hell of a shopping cart.  Donate once in a while and keep the development plus support going.  --  That's my opinion and I'm stickin' to it!

abantecart

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,
    ));

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

buddahboy

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
AbanteCart is one hell of a shopping cart.  Donate once in a while and keep the development plus support going.  --  That's my opinion and I'm stickin' to it!

Forum Rules Code of conduct
AbanteCart.com 2010 -