I need to change the woo-commerce cart price as per the extra cart item data added. So which is the recommended the hook for using this.
I have used action hook 'woocommerce_before_calculate_totals' for changing the product price. First I took the product original price using the get_price() method and modified price and then set the product price using the set_price() method.
But some other plugin uses the filter 'woocommerce_product_get_price' to change the product price. So changes that I made are lost.
So which is the recommended hook for changing the product price in the cart ??