Search found 52 matches

by flomo
31 Oct 2019, 17:31
Forum: Laravel package
Topic: Remove subparts from checkout summary
Replies: 8
Views: 2621

Remove subparts from checkout summary

I'm trying to remove some subparts from the checkout summary, as described here https://aimeos.org/docs/Configuration/Core/client/html/checkout/standard/summary/standard/subparts , but nothing happens, even with an empty array: 'client' => [ 'html' => [ 'checkout' => [ 'standard' => [ 'address' => [...
by flomo
29 Oct 2019, 10:44
Forum: Laravel package
Topic: Unable to change locale settings
Replies: 14
Views: 5015

Re: Unable to change locale settings

Can you please list again what results you need, e.g. "de_FR" -> "1'234'567'890.12", "de_CH" -> ...? I need "1'234'567'890.12", no matter the locale. But I already have a viable solution for this, by adding my own instance of view to the IOC. No need to spend...
by flomo
28 Oct 2019, 17:21
Forum: Laravel package
Topic: Unable to change locale settings
Replies: 14
Views: 5015

Re: Unable to change locale settings

We've streamlined the behavior in dev-master so you can use "price:default" and "%1$s %2$s" for swapping price value and currency ("price:default" has precedence over "%1$s %2$s"): Excellent, thank you! I can't currently switch to dev-master but will try it o...
by flomo
28 Oct 2019, 14:22
Forum: Laravel package
Topic: Unable to change locale settings
Replies: 14
Views: 5015

Re: Unable to change locale settings

Code: Select all

echo (new NumberFormatter('de', NumberFormatter::PATTERN_DECIMAL, ",##0.##"))->format(1234567890.123); // Output: 1.234.567.890,12
echo (new NumberFormatter('de_CH', NumberFormatter::PATTERN_DECIMAL, ",##0.##"))->format(1234567890.123); // Output: 1'234'567'890.12
by flomo
28 Oct 2019, 14:17
Forum: Laravel package
Topic: Unable to change locale settings
Replies: 14
Views: 5015

Re: Unable to change locale settings

Would "#'###'##0.00" produce the desired result? I'm asking because you have to get the desired results with one of those patterns. Otherwise, it's useless to add locale specific formatting. No, it doesn't work like this. With the pattern you can set the number of digits after the decimal...
by flomo
28 Oct 2019, 10:55
Forum: Laravel package
Topic: Unable to change locale settings
Replies: 14
Views: 5015

Re: Unable to change locale settings

Aimeos also has a fallback for translations from de_CH/fr_CH to de/fr. We will keep your suggestion in mind to add configure number formats per locale in the future. That would be great. The easier way might be to use the pattern configuration for the NumberFomatter class: Then, you can use configu...
by flomo
25 Oct 2019, 09:39
Forum: Laravel package
Topic: Unable to change locale settings
Replies: 14
Views: 5015

Re: Unable to change locale settings

The old view helper is still available but not used any more:
I just played around with the helpers. Is there a possibility to overwrite or exchange them?
by flomo
25 Oct 2019, 09:13
Forum: Laravel package
Topic: Unable to change locale settings
Replies: 14
Views: 5015

Re: Unable to change locale settings

Thanks for your always very appreciated support! The decimal separator is determined automatically by the locale setting due to the NumberFormatter class of the php-intl extension. You can't change that any more: In Switzerland we have 4 languages ((Swiss-) German, French, Italian and Rumantsch). Be...
by flomo
24 Oct 2019, 19:42
Forum: Laravel package
Topic: Unable to change locale settings
Replies: 14
Views: 5015

Re: Unable to change locale settings

I just found out, that the last example actually works and places the currency code before the price. However only on the product, not in the basket.
by flomo
24 Oct 2019, 18:27
Forum: Laravel package
Topic: Unable to change locale settings
Replies: 14
Views: 5015

Unable to change locale settings

How would you change the decimal separator? I tried: 'client' => [ 'html' => [ 'common' => [ 'format' => [ 'separatorDecimal' => '.', ] ], ] ] but this doesn't change anything. Also, Swiss Francs are correctly shown as "CHF" in the backend, but in "Fr" in the frontend. How would ...