Files
Jeremy Graham 7abb69c575 fix: read dot-decimal prices on comma-decimal stores (#219)
CurrencyHelper::toFloat() returned 0.0 when a price did not use the store
locale's format, for example "€319.00" on a fr_FR store. Url::updatePrice()
then saved a price of 0.

- Fall back to separator detection when the locale parser fails. The last
  separator is the decimal point, except that one kind of separator followed
  by exactly three digits is a thousands group.
- Use separator detection first when a price has both "." and ",". The de_DE
  parser reads "1,234.56" as 1.23 and does not fail.
- Return PHP ints and floats unchanged instead of re-reading them with the
  locale.
- Return null, not 0.0, when the value has no readable number.
  Url::updatePrice() treats null as a failed scrape and saves no price.

Closes #219
2026-10-02 13:11:35 +10:00
..
2026-06-02 21:42:11 +10:00
2026-06-02 21:42:11 +10:00