• At the checkout I got this error message. The page I am working on is still in early phase so it might be my fault.

    The error is:
    Deprecated: WC_Abstract_Legacy_Order::get_product_from_item is deprecated since version 4.4.0! Use $item->get_product() instead. in /var/www/Sajthaz/wp-includes/functions.php on line 4773

    Wordpress 5.5.1
    Woocommerce 4.5.2
    And Barion integration 3.3.0

    Any help or clue where to go with this is appreciated.

Viewing 1 replies (of 1 total)
  • Kedves Péter!

    Ugyanezt a hibát tapasztalom:
    WC_Abstract_Legacy_Order::get_product_from_item is deprecated since version 4.4.0! Use $item->get_product() instead.

    átp?rgettem a keresést az ?sszes fájlon, és csak a Barion b?vítményben találtam meg a kifogásolt részt:
    \wp-content\plugins\pay-via-barion-for-woocommerce\includes\class-wc-gateway-barion-request.php

    110 $product = $order->get_product_from_item($item);

    Nem lehet, hogy ez az oka?

Viewing 1 replies (of 1 total)
  • The topic ‘Deprecated error at checkout’ is closed to new replies.