WooCommerce - excelling eCommerce
Currency Symbol doesn't show (1 post)

  1. maheanuu
    Posted 2 years ago #

    Hello I've seen all the post about currencies but I can't find a solution. Here is the problem: The currency Symbol in WooCommerce is not displaying in product page, and everywhere else but the resume of the orders (after the payment, yes the payement gateway works with the right currency). I use this code:

    add_filter( 'woocommerce_currencies', array( &$this, 'add_payzen_currency' ) );
        	add_filter('woocommerce_currency_symbol', array( &$this, 'add_payzen_currency_symbol' ), 10, 2);
    		if ( !$this->is_valid_for_use() ) $this->enabled = false;
         * Check if this gateway is enabled and available in the user's country
        function is_valid_for_use() {
            if (!in_array(get_option('woocommerce_currency'), array('XPF'))) return false;
            return true;
    	function add_payzen_currency( $currencies ) {
    		$currencies['XPF'] = __( 'Pacific Francs', 'woocommerce' );
    		return $currencies;
    	function add_payzen_currency_symbol( $currency_symbol, $currency ) {
    		switch( $currency ) {
    			case 'XPF': $currency_symbol = 'XPF'; break;
    		return $currency_symbol;

    I insert this in a custom payment gateway plugin. Any tips? You can see the problem here: http://geekandbio.com/soskool/?product=test-produit-01



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic