i am trying to change product price in cart using the following function:

    add_action( 'woocommerce_before_shipping_calculator', 'add_custom_price' 
      function add_custom_price( $cart_object ) {
         foreach ( $cart_object->cart_contents as $key => $value ) {
         $value['data']->price = 400;

it is working correctly in woocommerce version 2.7 but not working in woocommerce Version 3.0.1. please help to rectify this issue. thanks in advance

Read more here: function not working in woocommerce Version 3.0.1


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: