• Resolved Bonaldi

    (@bonaldi)


    Hi,

    For products without add-on, an error appears in the shopping cart.

    Notice: Undefined index: _zaddon_additional in https://mysite/www/wp562/wp-content/plugins/product-add-ons-woocommerce/includes/Frontend/Product.php on line 198

    You should test _zaddon_additional in /includes/Frontend/Product.php, line 198 and replace with:

    
    	public function cart_item_price( $price, $cart_item ) {
    		if ( isset( $cart_item['_zaddon_additional'] ) ) {
    			return wc_price( $cart_item['data']->get_price() - $cart_item['_zaddon_additional'] );
    		}
    	}

    Regards.

Viewing 1 replies (of 1 total)
  • Plugin Author bizswoop

    (@bizswoop)

    Thank you for reporting the error. We have made a fix in the latest release today 2.1.26

Viewing 1 replies (of 1 total)
  • The topic ‘Missing isset cause notice’ is closed to new replies.