Decimal separator validation

com2 - October 19, 2005 - 12:48
Project:e-Commerce
Version:HEAD
Component:store
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Practically, from the user point of view this is a bug, but from a developper point of view you may consider it a feature.

The Decimal separator setting in the payment module is no only affecting the way prices are displayed. But from a user point of view it also affects the validation of the product form when it comes to product price and shipping cost. In Spain we use the comma and a client had to find out that he needed to enter a decimal point in stead of the comma.

My suggestion is to move this setting to another module, where it would affect all price formats in all modules, including the validation of new product nodes. However, I would prefer when prices in the database would remain with a decimal point, whatever the setting, so I would not need to manually change the price format of already entered products and would allow the exchange of database independent of the separator used.

#1

syllance - October 20, 2005 - 13:33
Category:bug report» feature request

i also faced this problem. separator are only used for display, and it's confusing when users have to enter amount, or with admin access upon product creation.

the idea to keep the price with decimal point is good, but i don't think we should add a module for this. there's already a lot of e-commerce "core" modules, and this can certainly be implemented another way. i'll have a look at this and will share any ideas here :-)

this is not really a bug, so i'm moving the status to feature request.

#2

com2 - October 20, 2005 - 17:14

You misunderstood. I don't want another module either. I would move the setting to an existing module where it should affect all other modules. My reasoning would be:

- stores generally work with money.
- Dealing with money has localization issues: notation and currencies.
- Money localization setting should therefore be part of the store module where it affects the whole store with all its modules.

#3

sime - February 15, 2007 - 09:02
Component:payment.module» store
Status:active» fixed

#4

Anonymous - March 1, 2007 - 09:15
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.