
Andrei-Cristian(@andrei-cristian)
12 Posts
Customers
Quote from Andrei-Cristian on September 19, 2021, 21:55
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?
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?

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on September 20, 2021, 11:55
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
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'];

Andrei-Cristian(@andrei-cristian)
12 PostsTopic Author
Customers
Quote from Andrei-Cristian on October 10, 2021, 14:56
Hello!
Thank you very much, this worked! :)
Hello!
Thank you very much, this worked! :)

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on October 11, 2021, 11:09
Hello
Welcome;)
Hello
Welcome;)