I'm stuck, don't know how we can change price against individual price in woocommerce.
Currently, Cart object provide us a single object against a single product doesn't really matter, how much quantity you have in the bucket due to below mentioned code in class-wc-cart.php.
if ( $cart_item_key ) {
$new_quantity = $quantity + $this->cart_contents[ $cart_item_key ]['quantity'];
$this->set_quantity( $cart_item_key, $new_quantity, false );
}
What I'm looking?
Suppose you have product with price of 200$, and customer push this product into cart so the quantity is 1 and in the same cart, if the customer either change quantity from input or click on add to cart button for the same product, then every time the price will be 20$ instead of the 200$.
That's what the issue, I don't understand how to do that, could you please help me to figure this out, it will be more helpful and means allot to me.
You need to research a little more. I ran what your asking thru Google here are the first three results. Anyone of these three links can get you started.
Change cart item prices in Woocommerce 3
https://rudrastyh.com/woocommerce/change-product-prices-in-cart.html
https://www.webroomtech.com/change-product-price-when-other-product-is-in-cart-woocommerce/