Community Forums 

Main Content

Whole number in quantity

    Apr 15 2009 03:21:25

    #1

    Maida Carpio Scott

    Join date : 2008-09-18      Posts : 24

    I just had a customer change the quantity in the cart to a decimal value in order to get a discount on a registration fee.

    He was supposed to log in as a member to receive member pricing, but apparently forgot his user/pw and was too lazy to wait for a reminder email?

    Anyway, I thought it was odd that the cart would allow a decimal number as a quantity. I assumed it would take integers only.

    Is there a setting that I can use to only allow whole number quantities in the cart?

    Thanks for your time,
    Maida



    Apr 15 2009 03:44:22

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4998

    Maybe go to the minimum order setup and set the minimum to 1?

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.




    Apr 15 2009 06:17:13

    #3

    Maida Carpio Scott

    Join date : 2008-09-18      Posts : 24

    I'll give it a whirl.

    But still, if someone ordered 2, that person could change the quantity to 1.5 or something.



    Apr 15 2009 07:15:08

    #4

    jv

    Join date : 2008-09-18      Posts : 2986

    For your products, only integers may make sense but what if you were selling material by the yard or diamonds by the carat (or karat)?

    To ensure only integers are passed to the cart you can either make the quantity a drop-down menu choice or validate the value with javascript.

    To prevent changes in the cart you need noqty - see Using an HTML form and Removing the quantity box.

    Alan
    Some shipping help documents are available at www.stoner.org.uk/mals/