Woocommerce outdated template - error with cart

Thyregod
3 Posts
Thyregod posted this 11 November 2017

I have an issue with woocommerce - My cart shows error like below. Also I cant go to checkout because of that.

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

Here is how looks link to checkout... Can someone help me fixing that?

Screenshot of checkout

I'm using version 3.2.3 of woocommerce and 4.8.3 of Wordpress

I have an issue with woocommerce - My cart shows error like below. Also I cant go to checkout because of that. Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in .../wp-includes/functions.php on line 3831 Here is how looks link to checkout... Can someone help me fixing that? ![Screenshot of checkout][1] [1]: https://i.imgur.com/6Us39fq.png I'm using version 3.2.3 of woocommerce and 4.8.3 of Wordpress
Vote to pay developers attention to this features or issue.
3 Comments
Order By: Standard | Newest
Thyregod
3 Posts
Thyregod posted this 12 November 2017

After endless hours of troubleshooting I've managed to eliminate the problem. I needed to edit the cart.php in the root of the theme folder (wp-content/themes/THEMENAME/cart.php)

I replaced the following lines
$woocommerce->cart->get_cart_url()with wc_get_cart_url() and
$woocommerce->cart->get_checkout_url() with wc_get_checkout_url()

The get_cart_url is present multiple times. Is it possible to fix this in Themler since the original have been deprecated a long time?

After endless hours of troubleshooting I've managed to eliminate the problem. I needed to edit the cart.php in the root of the theme folder (wp-content/themes/THEMENAME/cart.php) I replaced the following lines `$woocommerce->cart->get_cart_url()`with `wc_get_cart_url()` and `$woocommerce->cart->get_checkout_url()` with `wc_get_checkout_url()` The get_cart_url is present multiple times. Is it possible to fix this in Themler since the original have been deprecated a long time?
Support Team
Support Team posted this 14 November 2017

Hi,

Our developers reported that they fixed this compatibility issue.
In the meantime you can hide Notices from php error reporting. They should not affect the cart functionality.

Thank you,
Olivia

Hi, Our developers reported that they fixed this compatibility issue. In the meantime you can hide Notices from php error reporting. They should not affect the cart functionality. Thank you, Olivia
Thyregod
3 Posts
Thyregod posted this 15 November 2017

They should not affect the cart functionality.

Actually, I noticed the "Checkout" (or what the English version for the Danish "Gå til kassen" is) didn't work without changing the get_checkout_url().

> They should not affect the cart functionality. Actually, I noticed the "Checkout" (or what the English version for the Danish "Gå til kassen" is) didn't work without changing the get_checkout_url().
You must log in or register to leave comments