mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
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