Originally Posted by Centec2b
Question; the radio buttons at the bottom of the order sheet are defaulted to email the customer. I personally would prefer to have them the other way round. The code in question seems to come from
/toolroom/super_orders.php
/toolroom/super_batch_status.php
If I altered the radio buttons logic on line 1273 of the former and line 302 of the latter would that do the trick?
Diva Response
It should.. though I haven't explicitly tested this, changing the radio button that you wish to be the default to "true" should do the trick..
Diva I have altered the logic around super_orders.php and am testing it. I am confident the code is right.
super_batch_status.php uses the boolean test on the first part of
line 305
Code:
echo zen_draw_checkbox_field('notify', 'on', true); echo ' ' . ENTRY_NOTIFY_CUSTOMER . '<br>';
echo zen_draw_checkbox_field('notify_comments', 'on', true); echo ' ' . ENTRY_NOTIFY_COMMENTS;
ie
line 403
Code:
if ($notify == 'on') {
email_latest_status($oID);
}
Question; can I change the first checkbox on line 305 from TRUE to FALSE without changing the value? ie
Code:
echo zen_draw_checkbox_field('notify', 'on', FALSE);
Is this still within the logic expected to evaluate it on line 403?
It seems to work but I am unable to mail out on localhost so the whole action is not completed and whilst it shows an unlocked comment the green tick is not present to show the customer was emailed ok
Thank you
Centec2b
Bookmarks