Page 1 of 1

Switching Notify Customer from On to Off

Posted: Tue Feb 28, 2023 1:01 pm
by Moxamint
Hi,

In admin -> orders -> Edit -> Status History, there is a "Notify Customer" switch that defaults to "ON". What should I do to make it default to "OFF"? I dug into the code and found line 145 in admin/includes/actions/orders/views/edit.php:

Code: Select all

<?= (new Tickable('notify', ['value' => 'on', 'class' => 'custom-control-input', 'id' => 'oNotify'], 'checkbox'))->tick() ?>
Is it the right place to change the default value and how?

Thanks in advance for your time and help.

Eddy

Re: Switching Notify Customer from On to Off

Posted: Tue Feb 28, 2023 1:21 pm
by raiwa
It's the right place, but it would be a core change.
Remove "->tick()" at the end of the line to make it unticked by default.
Otherwise you could make a hook and untick it by javascript -> no core change.