Skip to content

Conversation

@extcode
Copy link
Owner

@extcode extcode commented Mar 4, 2025

Currency conversion is currently very strongly linked to the cart model and the way in which the currency conversion factor is loaded from TypoScript.

In order to be able to obtain the conversion factor from other sources, the calculation is carried out by the CurrencyTranslationService. This service is instantiated via the CurrencyTranslationServiceInterface interface so that a corresponding exchange via DI is possible.

The implementation should only be a start and does not yet offer a stable API because the behaviour must remain the same within the published versions. For this reason, the CurrencyTranslationServiceInterface is marked as @internal. Use is at your own risk! Changes to the service interface must be observed independently in the event of updates!

Resolves: #638

Currency conversion is currently very strongly linked to the cart model and the
way in which the currency conversion factor is loaded from TypoScript.

In order to be able to obtain the conversion factor from other sources, the
calculation is carried out by the `CurrencyTranslationService`. This service is
instantiated via the `CurrencyTranslationServiceInterface` interface so that a
corresponding exchange via DI is possible.

The implementation should only be a start and does not yet offer a stable API
because the behaviour must remain the same within the published versions. For
this reason, the `CurrencyTranslationServiceInterface` is marked as `@internal`.
Use is at your own risk! Changes to the service interface must be observed
independently in the event of updates!

Resolves: #638
@extcode extcode added the 11.x related to TYPO3 v13 label Mar 4, 2025
@extcode extcode self-assigned this Mar 4, 2025
@extcode extcode merged commit bdea93a into main Mar 4, 2025
10 checks passed
@extcode extcode deleted the 638-move-currency-translation-to-a-service branch March 4, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

11.x related to TYPO3 v13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move currency translation to a service

2 participants