Tagged: enfold, woo, woocommerce
I am getting a new error using Woo Commerce with Enfold.
Worked this morning with WooCommerce, they ran tests against other themes and concluded the bug lies in Enfold.
here is the error message broadcast on the top of my webpages:
WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in
This error is thrown from the functions.php code in the wp_includes part of Enfold.
Problem has disappeared now… deactivated all Woo plugins, cleared cache, then activated the plugins and no more deprecated error… not sure what the issue was…
Spoke too soon, problem is back…
Here is the note from Woo Commerce tech support:
“I looked into this and it seems to be your “” theme that is causing the issue.
I enabled two different themes in the customizer and the error went away:
In both cases, the error disappeared with the new theme.
You will need to contact your “Enfold” theme developer for help with this, as they should be able to provide you with a new copy of the file causing issues. You can reach them here: http://kriesi.at”
I’m getting this same error after updating WooCommerce plugins. Please help!
Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in /home/hikest5/public_html/wp-includes/functions.php on line 3831
Same error here…
Hi,
It’s not an error, only a warning, so it shouldn’t affect any functionality. A fix will be included in the next version of the theme.
If you can’t wait until the update then open config-woocommerce/config.php file and replace this line:
$link = $woocommerce->cart->get_cart_url();
with this:
$link = wc_get_cart_url();
Best regards,
Rikard
This worked for me! Thanks!