Last active
July 2, 2020 05:20
-
-
Save rynaldos-zz/fb1281b3bc5ce350d4dc9a1443f8bdf0 to your computer and use it in GitHub Desktop.
[WooCommerce 3.0] Show currency converter on single product pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_get_price_html', 'wc_ninja_add_sc_price_display', 20 ); | |
function wc_ninja_add_sc_price_display( $price ) { | |
if ( is_product() ) { | |
echo do_shortcode( '[woocommerce_currency_converter] ' ); | |
} | |
return $price; | |
} | |
//Did this help? Donate me some BTC: 1BEsm8VMkYhSFJ92cvUYwxCtsfsB2rBfiG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment