How to Get WooCommerce Product Price

If you are looking for to update the cart item price. You can try:

add_action( 'woocommerce_cart_loaded_from_session', array('update_cart_item_price' ),10);

public function update_cart_item_price( $cart_obj ) {
//  This is necessary for WC 3.0+
if ( is_admin() && ! defined( 'DOING_AJAX' ) ){
    return;
}

if( !WC()->session->__isset( "reload_checkout" )) {

    foreach ( $cart_obj->get_cart() as $key => $value ) {
        
        $_product = wc_get_product($value['product_id']);
        $get_price = $_product->get_price();
        $price_to_add = 10; // write your logic for this

        $value['data']->set_price($get_price + $yards);
    }
  }
}