Display the WooCommerce products prices in fiat + cryptocurrency

This snippet will display your product prices in fiat + cryptocurrency.

Just change ETH to whatever crypto you want to show it in.

// Show product prices in fiat + crypto
function mcc_woocommerce_get_price_html( $text, $product )
{
    // Is MCC installed?
    if ( ! function_exists( 'mycryptocheckout' ) )
        return $text;
    // Retrieve all of our currencies.
    $currencies = MyCryptoCheckout()->currencies();
    // Change this to your preferred currency symbol
    $show_currency = 'ETH';
    $currency = $currencies->get( $show_currency );
    // Is this currency known?
    if ( ! $currency )
        return $text;
    $new_price = $currency->convert( get_woocommerce_currency(), $product->get_price() );
    return $text . ' | ' . $new_price  . ' ' . $show_currency;
}
add_filter( 'woocommerce_get_price_html', 'mcc_woocommerce_get_price_html', 100, 2 );