PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Order post meta being saved after email hook

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi there,

We're trying to add the post meta _woocs_order_rate to the order confirmation emails that go to the admin. After digging around I saw that you're saving this data after the email has been dispatched meaning the meta value is always empty. Do you have a way around this, or are you able to change the action you're using to update this post meta to one before the email is sent?

Thanks!

Hello

In this case use current rate (this should be the same at the moment)

global $WOOCS;

$currrent = $WOOCS->current_currency;

$currencies = $WOOCS->get_currencies();

$rate = $currencies[$currrent]['rate'];

That did the trick, thank you very much!

Hello

Welcome;)