add_to_cart function not working
-
Hello,
I am using this code to add the product into the cart – WC()->cart->add_to_cart( 25, 1 ). It was working fine but from today I have got the below error message –
wc_add_number_precision(): Argument #1 ($value) must be of type float, null given, called in /chroot/home/a23cc473/fdd76f6eaa.nxcli.net/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1955I am using the latest WordPress and Woocommerce. Can you please advise me why this error message showing
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘add_to_cart function not working’ is closed to new replies.