Woocommerce >3.0
-
Ok : support inexistant.
It isn’t official answer. I’m working for a client which has installed this plugin. Basically, it works with Woocommerce 3.0.x. You could try. I see some PHP notices which plugin author should fix:
PHP Notice: id est appelée de la mauvaise manière. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), ..., WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, envoimoinscher->add_tracking_in_FO, WC_Abstract_Legacy_Order->__get, wc_doi in ...../wp-includes/functions.php on line 4138
PHP Notice: price est appelée de la mauvaise manière. Les propriétés du produit ne doivent pas être accessible directement. Backtrace: require('wp-blog-header.php'), ..., WC_Cart->calculate_shipping, WC_Shipping->calculate_shipping, WC_Shipping->calculate_shipping_for_package, WC_Shipping_Method->get_rates_for_package, envoimoinscher_carrier->calculate_shipping, envoimoinscher_model::split_package_get_quotation, envoimoinscher_model::get_price_from_product_set, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Veuillez lire <a href="https://codex.wordpress.org/Debugging_in_WordPress">Débugger dans WordPress</a> (en) pour plus d’informations. (Ce mes in ...../wp-includes/functions.php on line 4138
PHP Notice: product_type est appelée de la mauvaise manière. Les propriétés du produit ne doivent pas être accessible directement. Backtrace: do_action('woocommerce_page_envoimoinscher-settings'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, emc_admin_menus->settings_page, call_user_func, emc_admin_settings->output, emc_settings_simulator->get_settings, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Veuillez lire <a href="https://codex.wordpress.org/Debugging_in_WordPress">Débugger dans WordPress</a> (en) pour plus d’informations. (Ce message a été ajouté à la version 3.0.) in ...../wp-includes/functions.php on line 4138
PHP Notice: WC_Shipping_Zone::get_zone_id est <strong>déprécié</strong> depuis la version 3.0 ! Utilisez WC_Shipping_Zone::get_id à la place. in .....wp-includes/functions.php on line 3830
Possible fixes:
$order->id
could be replaced with:
$order_id = version_compare( WC_VERSION, '3.0.0', '<' ) ? $order->id : $order->get_id();
$item['data']->price
could be replaced with:
$item_price = version_compare( WC_VERSION, '3.0.0', '<' ) ? $item['data']->price : $item['data']->get_price();
Fixes for
product_type
:if ( 'variable' === ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->product_type : $product->get_type() ) ) { if ( 'simple' === ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->product_type : $product->get_type() ) ) {
Fixes for zone_id:
$default_zone_id = version_compare( WC_VERSION, '3.0.0', '<' ) ? $default_zone->get_zone_id() : $default_zone->get_id();
Sasa
@planitron I hope that my answer helped you.
@boxtale We are open for more testing. I’m still checking the source and possible incompatibilities with Woo 3.0.x.
I hope that helps.
I found new deprecated methods
shipping_postcode
,shipping_city
andshipping_country
. Possible fixes:$order_shipping_postcode = version_compare( WC_VERSION, '3.0.0', '<' ) ? $order->shipping_postcode : $order->get_shipping_postcode(); $order_shipping_city = version_compare( WC_VERSION, '3.0.0', '<' ) ? $order->shipping_city : $order->get_shipping_city(); $order_shipping_country = version_compare( WC_VERSION, '3.0.0', '<' ) ? $order->shipping_country : $order->get_shipping_country();
Also, there are issue related to dashboard javascripts. I already reported it: https://wordpress.org/support/topic/javascript-dependencies-for-woo-scripts/
Saša
- The topic ‘Woocommerce >3.0’ is closed to new replies.