Site logo

Archived topic

Order Confirmation Page (Checkout) PHP Deprecated notice

1 reply · Started by johnaps on August 17, 2022

Viewing posts 1–2 of 2

Hello!

I found these 2 deprecated notices with wp_debug on on the confirmation page after you complete an order!

Deprecated: The get_used_coupons function is deprecated as of version 3.7! Use WC_Abstract_Order::get_coupon_codes instead. in /www/testsofi4nos0rth0new_646/public/wp-includes/functions.php on line 5379

Deprecated: WC_Abstract_Legacy_Order::get_product_from_item function is deprecated as of version 4.4.0! Use $item->get_product() instead. in /www/testsofi4nos0rth0new_646/public/wp-includes/functions.php on line 5379

Do you know about this, i found out from other woocommerce threads that this probably means that some theme template files are outdated...?

Hi there,

GP doesn't load any Woocommerce templates. And neither of those deprecated callbacks are used by GP Premium.

If you're using a Child Theme to add custom woo templates like emails, invoices etc. then check those.
Or it will be a plugin or custom function.

This archived topic is closed to new replies.