Currency symbol doesn’t show when using ajax
-
I’m using a product filter that updates the products by calling admin-ajax.php. The custom currency symbol does not show when the ajax content is loaded.
I fixed it by adding a conditional check for ajax around line 99 in frontend/symbol.php
I changed
public function custom_currency_symbol( $currency_symbol, $currency ) {
if ( is_admin() ) {
return $currency_symbol;
}
topublic function custom_currency_symbol( $currency_symbol, $currency ) {
if ( is_admin() && ! is_ajax() ) {
return $currency_symbol;
}and it works as expected but this will get erased when updating the multi currency plugin. Can you please make this change. Thanks!
- The topic ‘Currency symbol doesn’t show when using ajax’ is closed to new replies.