Ubercart's issue queue is pretty huge, I searched but couldn't find a filed bug report about the issue, so here it is:
The uc_store_format_price_field_value() which tends to display prices on form fields does not respect the decimal marker configured at admin/store/settings/store/edit/format. Also with zero valued decimal precision, it returns the price ending with an orphan period. Coming is a patch to address this issue.

Comments

sepla’s picture

Status: Active » Needs review
StatusFileSize
new1.17 KB

BTW it got a nice issue number.

longwave’s picture

If you change the decimal marker, do prices then get parsed properly when submitting the product edit form?

#355492: Add decimal separator option to weight/length formats is related, but for different fields.

longwave’s picture

sepla’s picture

Yes, after form submission everything goes well, and the price get displayed properly on the product page, but if you edit the product again, prices are not well formatted as described in issue body. Thanks for referring issues, am reading..

Status: Needs review » Needs work

The last submitted patch, uc_store_format_price_field_value_fix_dec_marker-1091000-1.patch, failed testing.

sepla’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, uc_store_format_price_field_value_fix_dec_marker-1091000-1.patch, failed testing.

tr’s picture

Version: 6.x-2.4 » 6.x-2.x-dev
Status: Needs work » Needs review

The testbot doesn't currently work properly on fixed-point releases, so I'm changing the version of this issue to 6.x-2.x-dev.

tr’s picture

sepla’s picture

Thanks TR, didn't know that.
The patch at #1 does not apply cleanly against 6.x-2.x-dev branch, I'll provide the appropriate one ASAP.

sepla’s picture

koffieschaap’s picture

aubscribing

longwave’s picture

Status: Needs review » Closed (duplicate)