Deprecation Notice
-
Here’s the issue. WooCommerce updated a bunch of stuff in 3.0 and now this plugin is throwing out a deprecation notice, unfortunately every time the cart page is viewed. It’s killing debug logs:
PHP Notice: WC_Cart::get_cart_url is <strong>deprecated</strong> since version 2.5! Use wc_get_cart_url instead. in /httpdocs/wp-includes/functions.php on line 3831
The solution is pretty straight-forward and simple. The following file needs updated a bit:
gift-cards-for-woocommerce/includes/giftcard-checkout.php
Lines 249 and 251 both need to be updated to the new functions:
if ( is_cart() ) { $gotoPage = wc_get_cart_url(); } else { $gotoPage = wc_get_checkout_url(); }
There may be a few other places in the plugin that needs to be updated to this new format to cover WooCommerce 3.0 but these are the things that keep popping up in my debug logs that I would love to see updated.
- The topic ‘Deprecation Notice’ is closed to new replies.