Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: SOLVED - How can I make notify customer the default when order status changes  (Read 8592 times)

Offline buddahboy

  • Full Member
  • ***
  • Posts: 234
  • Karma: +32/-0
    • View Profile
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
« Last Edit: November 23, 2013, 01:26:39 PM by buddahboy »
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!

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4367
  • Karma: +302/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: How can I make notify customer the default when order status changes
« Reply #1 on: November 23, 2013, 09:37:40 AM »
Edit admin controller file:
/admin/controller/pages/sale/order.php

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

Add:
Code: [Select]
'value' => 1,
You will have:

Code: [Select]
$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

Offline buddahboy

  • Full Member
  • ***
  • Posts: 234
  • Karma: +32/-0
    • View Profile
Re: How can I make notify customer the default when order status changes
« Reply #2 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
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!

 

Powered by SMFPacks Social Login Mod