Error after woocommerce update
-
Hello guys, after the last woocommerce(3.9.1) update, i`m facing this error on the cart page:
Could someone help me?
Warning: strpos() expects parameter 1 to be string, array given in /home/store/www/wp-content/plugins/woocommerce-cart-stock-reducer/includes/class-woocommerce-cart-stock-reducer.php on line 176
public function expire_notice_added() { if ( true === $this->expiration_notice_added ) { // Don't loop through notices if we already know it has been added return true; } foreach ( wc_get_notices() as $type => $notices ) { foreach ( $notices as $notice ) { if ( false !== strpos( $notice, 'wc-csr-countdown' ) ) { $this->expiration_notice_added = true; return true; } } } return false; }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Error after woocommerce update’ is closed to new replies.