Skip Navigation

CRED Commerce receives WC->cart->get_checkout_url() deprecated since 2.5

Resolved

Reported for: Toolset Forms Commerce 1.5

Resolved in: Toolset CRED Commerce 1.6

Symptoms

After Updating WooCommerce to version 2.5, Cred Commerce can throw the following PHP Notice:

WC->cart->get_checkout_url() deprecated since 2.5 using new 
function wc_get_checkout_url()

and also this PHP Notice:

PHP Notice:  Undefined index: order_on-hold

Workaround

This issue will be fixed in the next version of CRED Commerce.

In the meantime, this patch can be applied by unzipping it and uploading the files it contains to replace the one with the same name. The files are:

  • CRED_Woocommerce.php in cred-commerce/plugins/woocommerce/
  • Form_Handler.php in cred-commerce/classes/

Comments are closed