Looking for help?
< All Topics
Print

Disallow Register Waiter mode remove ordered item on table / desk

add this code to yourtheme/functions.php or any snippest code + update the method code , price as you want

function custom_pos_waiter_remove_dish_data($session_response_data){

    $active_emails = array();
    // add this allow for some staff email only
    // $active_emails[] = 'abc@gmail.com';

    $logged_user_email = $session_response_data['email'];
    if(empty($active_emails) || in_array($logged_user_email,$active_emails))
    {
        $session_response_data['setting']['pos_waiter_remove_dish'] =  'no';
    }
    return $session_response_data;
}
add_filter('op_get_login_cashdrawer_data','custom_pos_waiter_remove_dish_data',11,1);

Table of Contents