Hello,
I have the following issue: no matter what I do, I get a constant wc_get_cart_url() related error from the Klaviyo WooCommerce module and the error log reads:
PHP message: PHP Fatal error: Uncaught Error: Call to undefined function wc_get_cart_url() in /wp-content/plugins/klaviyo/includes/wck-cart-functions.php:94
Has anybody seen something like this?
Thanks!
Solved
Constant wc_get_cart_url() error

Best answer by hristolaskov
Sure thing, yes, sorry for not responding earlier.
So, based on Scott’s help, we added a checked whether the wc_get_cart_url() is actually defined (we know it is, yet sometimes it seems it is not recognized) . This stopped the errors, and yet - everything is functioning properly.
The edit is in wck-cart-functions.php, line 88:
if ( is_admin() || ! function_exists( 'wc_get_cart_url' ) ) { return; }
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.