• Resolved jhamoud

    (@jhamoud)


    Hi There – I’m having this issue on my production site so I created a clean, new install to test. Here’s what’s running and a description of the problem:

    – WordPress 4.5.3
    – CurrencySwitcher 1.1.6
    – Postman SMTP 1.7.2
    – WooCommerce 2.6.1
    – WordFence Security 6.1.1

    I created a new order through the store front (add to cart, checkout using Cash on Delivery). I received the order confirmation email with the currency correctly showing in AED (Screenshot)

    I then went into the admin system and changed the Order Status from “Processing” to “Completed” and clicked on the Save Order button. This then triggered the Order Complete email which I received with the currency showing incorrectly as $ (Screenshot). The amount is correct but the currency isnt.

    My currency switcher settings are set as below:
    Currencies
    Options

    Can you please let me know how we can get this fixed? Why isnt WordPress pulling the order currency correctly?

    https://www.ads-software.com/plugins/woocommerce-currency-switcher/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author RealMag777

    (@realmag777)

    Hello

    Try to catch any conflict by this tests please: https://currency-switcher.com/currency-recounts-wrong-double-zero-and-others/

    Thread Starter jhamoud

    (@jhamoud)

    Hey there – appreciate your help on this. I’m not sure what conflict you want me to catch. It’s a clean install with only 4 plugins installed. If there is a conflict with those 4 basic plugins (listed above) then there may be a bigger issue. I’ve provided all the details I can including screenshots of the configuration. Is there any way you can help me debug this because this is a clean instsall with no plugins (only the 4 listed) and its showing the same issues as my production site. I think its an issue with the woocs plugin and the way its handling something.

    Appreciate your help. Happy to provide the credentials to the site so you can take a look.

    Plugin Author RealMag777

    (@realmag777)

    Hello
    I catched it, I will look into it and give you know when it will be resolved

    Plugin Author RealMag777

    (@realmag777)

    Hello

    I just looking into this issue and catched strange behavior: https://clip2net.com/s/3Ak2MQ5 – if to complete order by ‘Order Actions’ from sidebar OR by this button https://clip2net.com/s/3Ak2YY6 – email I got is with right symbol. If select ‘Order status’ from ‘Order details’ metabox and press save order – wrong currency in the email, please try such situations and confirm/refute it …

    Scripts:
    – 2016 wp theme
    – woo
    – woocs

    Thread Starter jhamoud

    (@jhamoud)

    Hey RealMag,

    Sorry for not getting back to you sooner. I tested this on both my test site (fresh WordPress install) and my production site and the behavior is EXACTLY as you described in your post. Changing Order Status from the metabox gives the wrong symbol. Sending email from Order Actions sidebar sends correct symbol.

    Any idea how we can get this fixed? I process orders by changing their status and the email that gets sent out automatically has the incorrect currency.

    all the best,
    Jad.

    Plugin Author RealMag777

    (@realmag777)

    Hello Jad

    Looks like I found way:
    * open index.php of the file
    * find there add_action('woocommerce_order_status_completed', array($this, 'woocommerce_order_status_completed'), 1);
    * and after that code add add_action('woocommerce_order_status_completed_notification', array($this, 'woocommerce_order_status_completed_notification'), 1);
    * after function woocommerce_order_status_completed{…} or after any another function in WOOCS class drop next function:

    public function woocommerce_order_status_completed_notification($args)
        {
    	if ($this->is_multiple_allowed)
    	{
    	    $order_id = $args;
    	    $currency = get_post_meta($order_id, '_order_currency', true);
    	    if (!empty($currency))
    	    {
    		$_REQUEST['woocs_in_order_currency'] = $currency;
    		$this->default_currency = $currency;
    		$this->current_currency = $currency;
    	    }
    	}
        }

    works for me, try it …

    Thread Starter jhamoud

    (@jhamoud)

    Hey RealMag,

    Thanks for the note and for the fix. Just applied it to my staging and it seems to be working! Thats awesome! I’ll deploy to production tonight and continue to test. Will come back with any issues.

    Will you be rolling this into future versions of WOOCS?

    All the best,
    Jad.

    Plugin Author RealMag777

    (@realmag777)

    Hello Jad

    Welcome ??

    Sure, I did it already for 1.1.7/2.1.7 versions …

    Hi RealMag,

    I encounter similar issue but on the processing order status.

    Can you please help me on how to fix it?

    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Incorrect Currency on Order Email’ is closed to new replies.