• Resolved Silverwings

    (@silverwings)


    Hello,
    i have this problem

    Fatal error: Call to undefined method WooCommerce::add_error()

    when in response gateways i write:

    $woocommerce->add_error(__(‘Transiction error: ‘, ‘woothemes’) .$posted[‘responseText’]);
    wp_redirect( $woocommerce->cart->get_checkout_url());

    Thanks

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with add_error() function in Woocommerce 2.3’ is closed to new replies.