• Hi there,

    We are using Woocommerce Multi-Currency on our shop, for both USD (default) and CAD currencies.
    https://woocommerce.com/products/multi-currency/

    Unfortunately, when the invoice is generated, your plugin seems to ignore the currency in which the sale was made and defaults to CAD. For Canadian sales it’s fine, but for USD sales it always shows the USD value but has the CAD denomination.

    Any way you can help with this?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Cintiastela,
    I have not worked with that particular plugin, but our PDF Invoices are compatible with several other Multi-currency plugins so I’m not sure why it is showing CAD for all your orders. Our plugin actively applies the order currency to each price formatting programmatically, which looks like this:

    
    echo wc_price( $amount, array( 'currency' => order->get_currency() ) );
    

    This means that from our end, we do instruct WooCommerce to use the currency that is stored in the order, and it probably means that the Multi-Currency plugin that you use is overriding this at some point (which may be for other technical reasons). I recommend reaching out to their support, you can refer them to this post or let them contact us at [email protected] and we’d gladly help sort this out.

    Let us know if you need more information from us!

    Thread Starter cintiastela

    (@cintiastela)

    Thank you so much! I’ll ask them and let you know ??

    Thread Starter cintiastela

    (@cintiastela)

    Hi there,
    I got a reply from The TIV?NET Team, and they said:

    The PDF Invoices developer did not completely understand your question. He replied with the code showing currency *symbol*. You asked about the *value*.

    I regret to say that we are unable to support 3rd party plugins. We strive to provide integration with those sold through the official WooCommerce marketplace.

    So you will need to work with the PDF Invoices authors. If they need our plugin to test, we’ll provide them with a copy.

    Our issue is with the currency amount not being converted properly in the Invoice PDF. It shows the unconverted USD price with the CAD currency.

    Thanks for your help!

    Plugin Contributor Ewout

    (@pomegranate)

    I understand what you are saying. I thought you wanted to show the CAD price with CAD symbol and USD price with USD symbol but I now understand that you want to show CAD in all instances and this will require reculations.
    We don’t calculate any of the amounts , they are retrieved directly from the order, just like the currency, any recalculations will have to be done by the Multicurrency plugin. Here’s a more complete (simplified) example of how we retrieve the prices:

    
    // item prices
    foreach ($order->get_items as $item_id => $item) {
    	// using woocommerce formatting functions indirectly
    	$price = $order->get_formatted_line_subtotal( $item )
    	// other prices, mostly not used in the free version, using wc_price
    	$price = wc_price( $item['line_tax'], array( 'currency' => $order->get_currency() ) );
    }
    // order totals prices, using woocommerce formatting functions indirectly
    foreach ($order->get_order_item_totals as $key => $total) {
    	$price = $total['value'];
    }
    

    We use only the official woocommerce getters for both the price and the currency symbol.
    If there’s anything we can do to trigger Multicurrency to do their recalculations I can certainly look into that, but I need more information for this. Is any developer documentation available?

    Thread Starter cintiastela

    (@cintiastela)

    Hi there, Sorry for the delay!
    So, I think we’re still not on the same page about the issue we’re having.
    I’ll try explaining again:
    Our Woocommerce store default currency is USD.
    We use Woocommerce Multi-Currency so we can include CAD prices, which are converted automatically. https://woocommerce.com/products/multi-currency/
    When customers buy a product in USD, the PDF invoice is currently showing the USD price but it says CAD, not USD. So, e.g. the price is 75USD, but it says 75CAD. It doesn’t convert to CAD, it just shows the CAD denomination by mistake.

    USD is the default currency, so we’re really intrigued as to why this could be happening with the PDF invoices.
    If you’d like to have access to our store, we can provide a login.

    Hope this makes sense, and that you’re able to help out.
    Thanks!

    Thread Starter cintiastela

    (@cintiastela)

    Oh, and TIV.NET are the support people for Multi-Currency. Their email is [email protected], and they said “If they need our plugin to test, we’ll provide them with a copy.”

    The Documentation for the plugin is here:
    https://docs.woocommerce.com/document/multi-currency/?_ga=2.170439648.1739295114.1554785773-1939085044.1540685416

    Thanks!

    Plugin Contributor Ewout

    (@pomegranate)

    Hello! I think the confusion arose because TIV.NET wrote the opposite of what you wrote:

    He replied with the code showing currency *symbol*. You asked about the *value*.

    If I understand your last message correctly it’s showing the correct value (amount in the currency used by the customer), but the wrong symbol. Why Multicurrency is storing a different currency in the order than the actual value is not clear yet (it’s possible that it uses your personal selection instead of the site default?), but I’d be happy to look into this for you. Please send an email with details to support@wpovernight and we’ll do our best to help!

    Ewout

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Incompatible with Woocommerce Multicurrency’ is closed to new replies.