Get price of product in Woocommerce

Get price of product in Woocommerce

if( $product->is_type( 'variable' ) ){
				$available_variations = $product->get_available_variations();
				}
				else {
				
				}
				$regularprice = $available_variations[0]['display_regular_price'];
					
				if (!empty( $regularprice)	){
					
				}
				else {
					$regularprice = $product->regular_price;
				}
					$from = $regularprice;
			        $to = $product->price;
			   if ( $product->price > 0 ) {
			      if ( $from <> $to ) {
			       
			        echo '
'.( ( is_numeric( $to ) ) ? woocommerce_price( $to ) : $to ) .'
van '. ( ( is_numeric( $from ) ) ? woocommerce_price( $from ) : $from ) .'
' ; } else { $to = $product->price; echo '
' . ( ( is_numeric( $to ) ) ? woocommerce_price( $to ) : $to ) . '
'; } } else { //NO PRICE }