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

Display Woocs Order Rate

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.

Hello

I want display the basic currency in my website (Dollar $), but I want display line for Total invoice in Lebanese  currency (LPB) just in PDF invoice

I used the following code :

global $WOOCS;

$currencies=$WOOCS->get_currencies();

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

return $order->get_total()*$rate;

 

But it display the last rate, I want display the same order rate in order date .. could you please hep me to do it ?

 

Best regards

Rawaf

Hello

To get  order  rate:

$order_rate = get_post_meta($order->get_id(),  '_woocs_order_rate', true);

Hello

thank you for your fast response, the idea is I want display the invoice with dollar currency but the total in the end in Lebanese currency (LBP)

so I think this code will get the invoice currencyonly right ? my question how can I get the Lebanese currency  (LBP) rate in same invoice date

I hope my idea is clear

Best regards

Hello

You can only get the rate of the currency in which the order is made

Do you have any suggest how can I save the value in old invoice on the same creation invoice date ?

Hello

Use Hooks(order creation) and write any information in custom meta fields (update_post_meta)