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!

Relates: #638

@extcode extcode self-assigned this Mar 4, 2025
@extcode extcode force-pushed the 638-move-currency-translation-to-a-service_v10 branch from 6b4f3a0 to 78f4290 Compare March 4, 2025 14:41
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!

Relates: #638
@extcode extcode force-pushed the 638-move-currency-translation-to-a-service_v10 branch from 78f4290 to 1ace3a5 Compare March 4, 2025 14:54
@extcode extcode added the 10.x related to TYPO3 v12 label Mar 4, 2025
@extcode extcode merged commit 8ed8e40 into 10.x Mar 4, 2025
13 checks passed
@extcode extcode deleted the 638-move-currency-translation-to-a-service_v10 branch March 4, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.x related to TYPO3 v12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants