Redirect

[insert_php]

if( is_object (WC()->cart ) ){

//var_dump(WC()->cart);

if( ! WC()->cart->is_empty() )
WC()->cart->empty_cart();

if( isset( $_GET[‘product_id’] ) )
WC()->cart->add_to_cart( $_GET[‘product_id’] );

//var_dump(WC()->cart);
wp_redirect(‘https://www.arneo.vision/checkout/’);
}

[/insert_php]