× İlan! CAN YOU CREATE a QUESTION FOR ENGLISH EXAMS.WE ARE LOOKING FOR QUESTION CREATER. FOR MORE INFORMATION CLICK HERE.

woocommerce outdated template codes in cart and checkout

After a long time you have decided on using your old but favorite woocommerce theme and but anyway you are getting following notice warning.

Notice: WC_Cart::get_checkout_url is deprecated since version 2.5! Use wc_get_checkout_url instead. in

This piece of codes are hidden where your cart and checkout links located, generally it is header.php

Ok to solve this tiny but painful notice warnings open header.php or cart.php files with your favorite text editor software , and try to find the code line below shown on provided image

then replace it with:

wc_get_checkout_url()

New look must be seen like:

If you are also experiencing debug error with your cart.php replace its codes as it is shown below

$woocommerce->cart->get_cart_url()with wc_get_cart_url()
$woocommerce->cart->get_checkout_url() with wc_get_checkout_url()

Tags: , , , , ,

Categorised in: Woocommerce, Wordpress

This post was written by A.Bergmann

Anadolu Üniversitesi Yabancı Diller & Ruhr Üniversität – Bochum

Önceki

php – undefined index hatası alıyorum

Sonraki

PC renk ayarı yaparken bilgisayarım aniden kapandı