Results 1 to 8 of 8
  1. #1
    Join Date
    May 2007
    Posts
    38
    Plugin Contributions
    0

    red flag Comma as decimal separator in quantity field

    Hello @all!

    I've a problem that was'nt solved as far as I searched for a solution:

    We are selling cloth in a european country and the quantities are measured with a comma instead of a point. I managed to change the appearance of the prices in the shop so that prices are shown correctly as 10,50 Euro per meter. BUT:

    I really need to set the comma as decimal separator also for the quantity! People go and override the shown minimum quantity with a comma-value and get a message stack output, that the item is in the shopping cart, but it wasn't processed correctly.

    The best would be a solution, where the input of a comma results in a point for the quantity in the shopping cart. This can be done probably by javascript?

    At least I need a hint / error message for the customer when he puts in a comma in the quantity field.

    Does anybody know a solution like this?

    I already found a forum post regarding this: http://www.zen-cart.com/forum/showthread.php?t=102569

    But I hope it is ok to start this new as it should be a general customization question in frontend, I think.

  2. #2
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: Comma as decimal separator in quantity field

    so on the quantity, AFAIK, you cannot enter a "special" character..
    e.g ,./? etc

    i may be proven wrong on this :)
    i may not know how yet, but i soon will....i hope :)

  3. #3
    Join Date
    May 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Comma as decimal separator in quantity field

    You can - but it will not be processed correctly except for the point (.). If configured in admin/configuration/stock management/Decimals in quantity you can choose how many decimals are allowed. So I can give 2 decimals to my quantities to allow customers to buy 0.5 meter of cloth. Zen Cart also manages the minimum quantity there and everything works correct: but with the point - not with a comma.

    And that's the problem: my customers are used to commas as decimal separator and there is nothing I could do about that. They will use the comma to put 0,5 meter cloth in the shopping cart - but Zen Cart will put nothing in the shopping cart because it doesn't accept the comma. Currently they don't even see an error message.

    So I really have to solve that.

    Any ideas?

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Comma as decimal separator in quantity field

    admin/localization/Currencies

    Select your currency and click Edit. Change the decimal point and thousands separator as you wish.

    Rob

  5. #5
    Join Date
    May 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Comma as decimal separator in quantity field

    Yes! I've done that already - but this doesn't change the quantity decimal!!!

    It does apply to the prices - and there it's working. But the quantity decimal isn't changed by that currency decimal modification.

    Quote Originally Posted by rstevenson View Post
    admin/localization/Currencies
    Select your currency and click Edit. Change the decimal point and thousands separator as you wish.
    I interchanged point and comma to get european style prices like EUR 15,45 or EUR 1.500,45. But this does not apply the decimal in the quantity field!

    Is there another idea?

  6. #6
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Comma as decimal separator in quantity field

    Right! I see now.

    All the references I could find in the database were also related to currency decimal places.

    Let's hope the devs chime in. They may be the only ones who could figure this out.

    Rob

  7. #7
    Join Date
    May 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Comma as decimal separator in quantity field

    I need to push that as I haven't found a solution to this problem yet.

    Is it possible to change the decimal in the quantity field to a comma? Perhaps the same function can be used which does this for the currency field?

    Please....

  8. #8
    Join Date
    May 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Comma as decimal separator in quantity field

    I must admit that this problem hasn't been solved yet. Current version of my shop is: 1.3.8 with some fixes.

    Is this probably solved in 1.3.9? I still didn't update because of some changes...

 

 

Similar Threads

  1. Comma as decimal separator in quantity field
    By dee_d_lady in forum Basic Configuration
    Replies: 0
    Last Post: 15 Sep 2013, 08:16 PM
  2. v150 GV amounts cannot use comma as decimal seperator
    By andriks in forum Bug Reports
    Replies: 0
    Last Post: 12 Jul 2012, 12:04 PM
  3. Gift certificate decimal separator and required message field
    By jolion in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 19 Jul 2010, 09:49 PM
  4. Comma as decimal separator in quantity
    By cricri in forum Basic Configuration
    Replies: 2
    Last Post: 6 Dec 2009, 08:07 PM
  5. Decimal separator in GV checkout
    By Lampivimpa in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 7 Apr 2008, 02:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg