Hey @alekv, did you manage to fix those errors? I tried integrating the code below to see if I could fix them but didn’t have any luck…
function wck_save_or_update_cart() {
}
}
+ // don't create a post and the assorted crap if the cart doesn't have anything in it.
+ if($create_new_cart && WC()->cart->is_empty()) {
+ return;
+ }
+
if ( $create_new_cart ) {
$cart_id = wp_insert_post( $cart_data, true );
-
This reply was modified 6 years, 3 months ago by LuisVzz.