Looking for help?
< All Topics
Print

Enable All payment method allow OFFLINE refund


function custom_allow_refund_op_login_format_payment_data($payment_data)
{
    if($payment_data['allow_refund']  && $payment_data['allow_refund'] == 'no')
    {
        $payment_data['allow_refund'] = 'offline';
    }
    return $payment_data;
}

add_filter('op_login_format_payment_data','custom_allow_refund_op_login_format_payment_data');
Previous Disallow Register Waiter mode remove ordered item on table / desk
Next Enable Rounding at Cart Grand Total
Table of Contents
[elementor-template id="5546"]