Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #866421

    Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in /home/mygirlfriday805/public_html/wp-includes/functions.php on line 3831

    I know this will be fixed with new update, but will this appear on the screen for my customers?

    #866671

    Hey MyGirlFriday805,

    That is correct, if you want to fix it before that then please open this file: /config-woocommerce/config.php, and change this line on line 1775:

    $link = wc_get_cart_url();

    To this:

    $link = function_exists( 'wc_get_cart_url' ) ? wc_get_cart_url() : $woocommerce->cart->get_cart_url();

    Best regards,
    Rikard

    #867384

    thanks @rikard. I found in line 1802 1803 just added pound sign to not remove line to test and added new one. see below.Funny though this only happened on one site with enfold, others are working fine with latest enfold and wc.

    `$link = function_exists( ‘wc_get_cart_url’ ) ? wc_get_cart_url() : $woocommerce->cart->get_cart_url();
    # $link = $woocommerce->cart->get_cart_url();

    • This reply was modified 7 years, 1 month ago by olauno.
    #867426

    Hi,

    Glad that Rikard helped you. Let us know if you need more assistance :)

    Best regards,
    Nikko

    #870377

    Hi there,

    I am having this same error noticed but we aren’t able to use either fix given so far.
    Can someone please have a look at my client’s website? – *info in private section*

    I have hidden the error notice by adding the following to my child theme’s functions:

    ini_set('display_errors','Off');
    ini_set('error_reporting', E_ALL );
    define('WP_DEBUG', false);
    define('WP_DEBUG_DISPLAY', false);
    #870448

    Hi Briana,

    I am not seeing the error, can you please describe more when it happens?

    Best regards,
    Victoria

    #870671

    HI Victoria,

    I hid the error using this as I posted previous:

    —->I have hidden the error notice by adding the following to my child theme’s functions:

    ini_set('display_errors','Off');
    ini_set('error_reporting', E_ALL );
    define('WP_DEBUG', false);
    define('WP_DEBUG_DISPLAY', false);

    I don’t want any customers to see it as it is an online store so hid the error.

    #871116

    Hi Briana,

    Updating to the latest version of the theme (4.2) should remove those messages: http://kriesi.at/documentation/enfold/updating-your-theme-files/

    Best regards,
    Rikard

    #871466

    Oh! I didn’t realise I was behind on my theme updates – sometimes enfold doesn’t show an alert/notification, but I should have checked that first.
    I will update the theme and get back to you.

    #871472

    Yup – fixed!
    Thanks everyone :)

    #871494

    Hi,

    Great! I’m glad you were able to get this resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_u’ is closed to new replies.