I have added number of products using add_to_cart($product_id) function through a template using following code in WooCommerce Wordpress.
global $woocommerce;
$id_arr = $_POST['up_product_chk'];
$i = 0;
for($i; $i<=count($id_arr); $i++){
$ids = $id_arr[$i];
$woocommerce->cart->add_to_cart($ids);
}
wp_redirect(site_url().'/cart/');
Now I wish to add custom price for each product through this template. As now price in cart is same as in database but I want to add my custom price through this point. Can someone help me to do the same. Thanks