• Howdy_McGee

    (@howdy_mcgee)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Me too. Using WC 3.2.6, Gift Cards 2.5.11

    Notice: WC_Cart::get_checkout_url is deprecated since version 2.5! Use wc_get_checkout_url instead. in ../public_html/wp-includes/functions.php on line 3839

    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    @wprobbiewp – I actually emailed the developer through their website on their profile a few months ago and they mentioned being busy with the upcoming holidays and would look into it soon but it never happened. Looking at previous their plugins, they also haven’t been updated in years so we moved to YITH WooCommerce Giftcards which appears to have a more dedicated developer group and so far it’s worked out for the best.

    I did have a look at “YITH WooCommerce Giftcards” but the free version has limited features. It works fine but there is no way to check the gift card balance or view it’s usage history. Are you using the paid version?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deprecation Notice’ is closed to new replies.