• Resolved gorzewski

    (@gorzewski)


    Problem:

    [24-Oct-2024 12:44:49 UTC] The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().
    [24-Oct-2024 12:44:50 UTC] The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().

    The WooCommerce PDF Watermark plugin uses the deprecated get_product_from_item method, which has been replaced by the $item->get_product() method. The problem occurs in the file /home/znajdz/domains/zabawybeznudy.pl/public_html/wp-content/plugins/woocommerce-pdf-watermark/includes/class-wc-pdf-watermark.php on line 95.

    You use the method:
    $product = $order->get_product_from_item($item);

    Corect method:
    $product = $item->get_product();

    Thanks for answer.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hey @gorzewski ,

    Thanks for reaching out!

    Since this ties in to a premium extension, WooCommerce PDF Watermark, you’ll need to contact us directly via?Woo.com → My Account → Support. You may need to log in to the account used to purchase the extension, before you’re able to access that page.

    As per the forum guidelines, no support for premium extensions is done here but we will be happy to assist you further from there.

    Cheers!

    Thread Starter gorzewski

    (@gorzewski)

    Hi,

    It only informs you about an existing problem. Since I am a programmer, I improved the code on my own. However, your other users may have this problem. I don’t have time to register the same issue/topic again after logging in to my Woo panel.

    Thanks
    Wojtek

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hey @gorzewski ,

    Glad to hear that you managed to find a working solution here.

    Absolutely understand! If you do happen to need any further help with the WooCommerce PDF Watermark extension in future, please reach out directly via WooCommerce.com → My Account → Support. ??

    On the other hand, if you need any further help with WooCommerce core, feel free to create a new topic.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.