Last active
August 29, 2019 01:42
-
-
Save tamarazuk/3bef066b977cef6aabd7 to your computer and use it in GitHub Desktop.
WooCommerce Checkout Add-ons: WPML mult-currency support
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
function wc_checkout_add_ons_wpml_multi_currency_support( $adjustment ) { | |
return apply_filters( 'wcml_raw_price_amount', $adjustment ); | |
} | |
add_filter( 'woocommerce_checkout_add_on_get_adjustment', 'wc_checkout_add_ons_wpml_multi_currency_support', 100 ); | |
add_filter( 'wc_checkout_add_ons_add_on_option_cost', 'wc_checkout_add_ons_wpml_multi_currency_support', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment