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

[WOOCS Labs] Show exchange rate or Second Currency on WooCommerce PDF Invoices & Packing Slips by E. Fernhout

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 am using WOOCS.

I am trying to display either an exchange rate, or a second currency somewhere within the invoice.

I am trying to do this by customizing a template and trying to use WOOCS variables, but to no avail.

Preferably, I’d do something like:

<td class=”price”><?php echo $item[‘order_price’]; ?></td>
<td class=”price”><?php echo $WOOCS[‘exchange_rate’]; ?></td>
OR
<td class=”price”><?php echo $WOOCS[‘second_currency’]; ?></td>

Would this be possible?

What would be the best way to show the conversion rate? By applying a filter? A hook?

Alternatively, can I simply print the value in the second currency (updated with exchange rate) as a second price?

Thank you in advance!

Hello

This is not a LABS - This is a customization of the code. this article is not suitable for you - https://currency-switcher.com/woocs-labs

All  functions - https://currency-switcher.com/codex#functions

To  get the rate

global $WOOCS;

$currencies=$WOOCS->get_currencies();

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

 

Hello!

Thank you very much, this worked! :)

Hello

Welcome;)