We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
The main currency is set up as NZD, however, the grid shows orders that were paid in USD showing without the currency code.
Shipping is displaying in NZD when the order was paid in a different currency.
Examples 1.
To Reproduce How, and what happened? As screenshots
Expected behavior
Additional info
Stripe for Craft Commerce: 2.3.2.1 PayPal for Craft Commerce: 2.1.0.1
The text was updated successfully, but these errors were encountered:
Hi @palomamtnez,
So I've ran into the same issue as you did and here is what I found.
OrderAdjustment
Transaction
CurrencyAttributeBehavior
This issue will occure when craftcms\commerc\elements\Order->currency has different value other than what is set to base currency.
craftcms\commerc\elements\Order->currency
I think this is the intended behavior on Commerce side but still feels wrong:
This helped the transaction to remain valid when having same currency and payment currency but not the same as base currency:
use craft\commerce\events\TransactionEvent; use craft\commerce\services\Transactions; Event::on(Transactions::class, Transactions::EVENT_AFTER_CREATE_TRANSACTION, function (TransactionEvent $event) { $tx = &$event->transaction; if ($tx->currency !== $tx->paymentCurrency) { return; } $tx->paymentCurrency = $tx->currency; $tx->paymentAmount = $tx->amount; $tx->paymentRate = 1; });
Do you have currency issue on the transaction tab?
Sorry, something went wrong.
No branches or pull requests
Description
The main currency is set up as NZD, however, the grid shows orders that were paid in USD showing without the currency code.
Shipping is displaying in NZD when the order was paid in a different currency.
Examples

1.
To Reproduce
How, and what happened?
As screenshots
Expected behavior
Additional info
Stripe for Craft Commerce: 2.3.2.1
PayPal for Craft Commerce: 2.1.0.1
The text was updated successfully, but these errors were encountered: