Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2006
    Posts
    126
    Plugin Contributions
    0

    Default decimal point problem

    Hi im new to zen cart community and looking for some help regarding adding product to the cart.
    I just want to know that is there any way to stop customer adding decimal point when he adds the product quantity i.e instaed of adding 1.1 he shud be able to add only 1.0 nothing else

    Any help will be appreciated

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: decimal point problem

    In Admin-> Configuration-> Stock, you can set the decimal place so the cart accepts only a certain number of decimals when entering quantities.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2006
    Posts
    126
    Plugin Contributions
    0

    Default Re: decimal point problem

    Hi
    Yep i have tried the thing but in the end it still takes .12 and add soem weird amount to checkout process and get stuck in loop

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: decimal point problem

    Do you have an URL to your site for the Product that is taking the wrong value?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Sep 2006
    Posts
    126
    Plugin Contributions
    0

    Default Re: decimal point problem

    hi
    shop2buy.com.au
    currently in test enviornment for products it is MP3 and MP4 players now if i want that there should be no decimal point entered.
    that if customer enters 1.1 it should not show any cost or anything and should prompt customer that they have entered wrong value

 

 

Similar Threads

  1. ZenCart uses decimal point in gift voucher amount
    By kalastaja in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 1 Oct 2010, 08:27 AM
  2. Replies: 9
    Last Post: 24 Jul 2010, 11:56 AM
  3. need to get rid of decimal point or .00 in prices
    By paha in forum Customization from the Admin
    Replies: 2
    Last Post: 8 Jul 2008, 12:08 AM
  4. decimal point in pricing
    By rwoody in forum General Questions
    Replies: 0
    Last Post: 12 Mar 2007, 04:05 AM
  5. salemaker rounding up a third decimal point ?
    By pilot in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 21 Aug 2006, 02:02 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