foreach($items as $item => $values) { $_product = wc_get_product( $values['data']->get_id());$price = get_post_meta($values['product_id'] , '_price', true);
$product_id = $_REQUEST['product_id'];
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
if ( $cart_item['product_id'] == $product_id ) {
WC()->cart->remove_cart_item( $cart_item_key );
}
}