Support » Plugin: WooCommerce Braintree Payment Gateway » WC 3.0 deprecation warning

  • Resolved christer_f

    (@christer_f)


    I get deprecation warnings from Woocommerce: “order_total was called incorrectly. Order properties should not be accessed directly…. This message was added in version 3.0.”

    This comes from line 321 in your plugin’s main file where you have

    "amount" => $order->order_total,

    You need to update this line (and possibly others) to be fully compliant with WC 3.x

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WC 3.0 deprecation warning’ is closed to new replies.