woocommerce - Getting issue with woocommerce3.0 checkout in wordpress -
[07-apr-2017 13:11:56 utc] order_total called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] billing_first_name called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] billing_last_name called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] billing_company called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] billing_address_1 called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] billing_address_2 called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] billing_city called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] billing_state called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] billing_postcode called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] billing_country called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] billing_phone called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] billing_email called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] user_id called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] shipping_first_name called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] shipping_last_name called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] shipping_company called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] shipping_address_1 called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] shipping_address_2 called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] shipping_city called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] shipping_state called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] shipping_postcode called incorrectly. order properties should not accessed directly.. message added in version 3.0. [07-apr-2017 13:11:56 utc] shipping_country called incorrectly. order properties should not accessed directly.. message added in version 3.0.
woocommerce 3.0 revamped code restrict direct access of property, can either change code below.
$orderid= ( wc()->version < '2.7.0' ) ? $order->id : $order->get_id(); $shipping_country = ( wc()->version < '2.7.0' ) ? $order->shipping_country : $order->get_shipping_country();
or update plugins wc3 compatible.
$order->property : $order->get_property();
Comments
Post a Comment