• Resolved skoldin

    (@skoldin)


    Hi Thomas,

    WooCommerce has deprecated the approach with direct accessing product properties like $product->id. Now we have to get it using built-in methods like this: $product->get_id(). There are several occurrences of direct accessing product properties in your plugin and it generates various PHP notices and warnings and can potentially cause functionality issues. Do you plan to replace it with WooCommerce methods in the next version and when do you plan to update?

    I had a look and found that there are also the following deprecated functions and methods, which would be good to replace:

    get_product()
    $order->get_total_shipping()
    $order->get_product_from_item()
    woocommerce_get_formatted_variation()

    Regards,
    Igor

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP notices after updating to WooCommerce 3’ is closed to new replies.