Switching Notify Customer from On to Off

Ask the community for help and support.
Post Reply
Moxamint
VIP Member
VIP Member
Posts: 85
Joined: Fri Nov 06, 2020 10:36 am
Has thanked: 22 times
Been thanked: 2 times

Switching Notify Customer from On to Off

Post 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
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 102 times

Re: Switching Notify Customer from On to Off

Post 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.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Post Reply