feat: update currency handling
Updated the way how we handle the currency in the system. Now instead of directly getting the user's currency or the default one, we use the getRuntimeCurrency() method. This method is likely to return the correct currency even if the user did not set it or if there is no default currency set in the system. This change is applied in several files including `index.php`, `CurrencySwitch.php`, and `LangCurrencySwitch.php`. Additionally, updated `composer.json` to use version 2.2 of `quiqqer/currency`. Removed unused code.
Übergeordneter
d4f7c28f
No related branches found
No related tags found
- composer.json 1 Ergänzung, 1 Löschungcomposer.json
- index.php 1 Ergänzung, 7 Löschungenindex.php
- src/QUI/TemplateCologne/Controls/CurrencySwitch.php 1 Ergänzung, 14 Löschungensrc/QUI/TemplateCologne/Controls/CurrencySwitch.php
- src/QUI/TemplateCologne/Controls/LangCurrencySwitch.php 4 Ergänzungen, 15 Löschungensrc/QUI/TemplateCologne/Controls/LangCurrencySwitch.php
... | ... | @@ -28,7 +28,7 @@ |
"quiqqer/unsemantic": "^2", | ||
"quiqqer-asset/fastclick": "^1", | ||
"quiqqer/tooltips": "^2", | ||
"quiqqer/currency": "^2", | ||
"quiqqer/currency": "^2.2", | ||
"quiqqer/smarty4": "^2.0.7" | ||
}, | ||
"autoload": { | ||
... | ... |
Bitte registrieren oder Anmelden zum Kommentieren