• Resolved stickyae

    (@stickyae)


    The invoice generated in the order has the currency symbol ?. ?

    However, I need it to change to AED for customers’ ease of reference.

    The whole website is already running on Code Snippets everywhere to enable the switching of currency symbol to AED.

    Thus the symbol problem remains unsolved ONLY during generating an Invoice.

    Please advice.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @stickyae,

    Thanks for reaching out to us.

    Presently our plugin works according to your WooCommerce currency settings. However, if you could share the code snippet that you use to switch the currency symbol, we can check the feasibility to provide an optimum solution for you. Awaiting your response.

    Thread Starter stickyae

    (@stickyae)

    /**
    * change currency symbol to AED
    */

    add_filter( ‘woocommerce_currency_symbol’, ‘wc_change_uae_currency_symbol’, 10, 2 );

    function wc_change_uae_currency_symbol( $currency_symbol, $currency ) {
    switch ( $currency ) {
    case ‘AED’:
    $currency_symbol = ‘AED’;
    break;
    }

    return $currency_symbol;
    }

    Plugin Author WebToffee

    (@webtoffee)

    Hi @stickyae,

    Thanks for sharing the information.

    Kindly copy the below-mentioned code snippet to your active theme’s functions.php to change the currency symbol on the invoice. Try this out and let us know how it goes.

    add_filter('wt_pklist_alter_currency_symbol','wt_change_currency_symbol',10,5);
    function wt_change_currency_symbol($wc_currency_symbol,$symbols,$user_currency,$order,$price)
    {
    	if($user_currency=='AED')
    	{
    		$wc_currency_symbol=' AED ';
    	}
    	return $wc_currency_symbol;
    }
    Thread Starter stickyae

    (@stickyae)

    This works perfect in combination with the original Snippet code!

    Thank you once again for the prompt response and solution!

    • This reply was modified 3 years, 5 months ago by stickyae.
    Plugin Author WebToffee

    (@webtoffee)

    Hi @stickyae,

    We are glad to know that the issue is resolved. If you like the plugin and support, please leave us a review here. Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Invoice Currency Symbol is not the same as the rest of website.’ is closed to new replies.