FOX - Currency Switcher for WooCommerce

woocs_currency_symbol_on_order

The woocs_currency_symbol_on_order filter controls whether FOX leaves the currency symbol untouched on the order-received ("thank you") page and on the account pages. FOX normally replaces the symbol WooCommerce produces with the symbol of the currently selected currency. On order pages that is not always what you want: the order was paid in a specific currency and is stored with it, so if the visitor switches currency afterwards and reloads the receipt, the amount keeps its original number while the symbol follows the switcher. Returning true from this filter tells FOX to step aside and keep the symbol WooCommerce passed in. The default is false, and the filter is only consulted when the global $wp_query is not set — that is, early enough in the request that the usual page checks are not yet available.
add_filter('woocs_currency_symbol_on_order', '__return_true');
Parameters:
  • $state (bool) - false by default
Returns:
  • (bool) true to keep the original currency symbol on order and account pages