YITH Gift Cards - Aelia compatibility

We are working on an improved version of our plugin that will totally integrates with Aelia Currency Switcher.
In the meantime, if you're facing problems of conversions and multicurrencies on your site, you can add this little snippet of code in your theme functions.php file.
 
add_filter( 'wc_aelia_cs_convert', 'yith_fix_wc_aelia_cs_convert', 1, 1 );
if ( ! function_exists( 'yith_fix_wc_aelia_cs_convert' ) ) {
function yith_fix_wc_aelia_cs_convert( $amount ) {
$amount = str_replace( ',', '.', $amount );

return $amount;
}
}
Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk