Skip to content

fix: use 1.0 currency factor for same-currency Magento orders - #66

Merged
Dennis Garding (DennisGarding) merged 2 commits into
trunkfrom
18905/fix-magento-currency-factor
Aug 12, 2026
Merged

Dennis Garding (DennisGarding) merged 2 commits into
trunkfrom
18905/fix-magento-currency-factor

Conversation

@DennisGarding

@DennisGarding Dennis Garding (DennisGarding) commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes: shopware/shopware#18905

1. Why is this change necessary?

Magento stores store_to_order_rate as 0.0000 for orders placed in the shop's base currency. The migration currently copies this value directly to Shopware's currencyFactor, resulting in orders with a currency factor of 0.

2. What does this change do, exactly?

Uses 1.0 as the fallback when store_to_order_rate is missing or less than or equal to zero. Valid currency conversion rates remain unchanged.

Adds regression coverage for zero and regular currency factors.

Wait for: #65 to fix the PHPStan pipeline:

@DennisGarding
Dennis Garding (DennisGarding) merged commit e63ade2 into trunk Aug 12, 2026
7 checks passed
@DennisGarding
Dennis Garding (DennisGarding) deleted the 18905/fix-magento-currency-factor branch August 12, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Migration][Magento] currencyFactor migrated as 0 for orders from a single-currency shop

3 participants