Community Forums 

Main Content

Quantities changed by Shopper...hmmmm???

    Jan 29 2009 21:40:59

    #1

    Michael Schwab

    Join date : 2008-09-18      Posts : 87

    Did anyone here know that when a savey shopper puts in a quantity of .5, the cart will recognize it and do the math, even when we don't offer that quantity???

    I found this very interesting and possibly useful, but also a detriment for people who think that is ok in one's store.....

    just a thought~have a great day!
    Sandra



    Jan 29 2009 22:28:52

    #2

    Don

    Join date : 2008-09-18      Posts : 487

    Hi,

    Well spotted, we must all be on our guard from this ploy.

    I think Mal should validate the Quantity box to only accept whole numbers.

    DB.

    www.donbarrow.co.uk
    www.pacenotes.com
    Please either Share or Like my Facebook




    Jan 30 2009 00:23:02

    #3

    anon

    Join date : 2008-09-18      Posts : 488

    You can use a simple javascript to validate for whole numbers on your forms. To prevent changes to a fractional number in the cart, use the noqty parameter.



    Jan 30 2009 01:35:57

    #4

    Michael Schwab

    Join date : 2008-09-18      Posts : 87

    thank you Anon!
    What would the full string (parameter) be? I'm only partially savvy to html, and can do it if I know what it looks like and where it goes (Front Page with Extensions web-build). :)
    re: Mals Parameters

    noqty turns off quantity box 1 1=the cart displays the number as text
    2=show checkbox so item can be deleted
    3=show a checkbox and a quantity in text

    I need it to be #2? (user cannot change quantity)

    <input type="hidden" name="noqty" value="0">

    Update: tried that , didn't work...

    Thanks in advance!

    TIA
    Sandra
    manyhorses.com



    Jan 30 2009 02:05:24

    #5

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    The line can go anywhere in your form between the form method and the </form> You put the number of your option choice under value. If you want the second option it would look like

    <input type="hidden" name="noqty" value="2">

    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.




    Jan 30 2009 03:03:39

    #6

    Michael Schwab

    Join date : 2008-09-18      Posts : 87

    Debbie,

    I put that in and the cart came back with a ticked box. ?

    I want to make it so they can't put in fractional numbers like .5 for half an order (50 of 100 beads).



    Jan 30 2009 03:52:45

    #7

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    noqty makes it so they cannot change the qty once it is in the cart. Option 2 which I thought you said you wanted puts a tickbox so the item can be removed if they want. Option 3 puts a tickbox and a solid number. This allows them to see what they ordered but still allows them to take it out if they change their mind.

    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.




    Jan 30 2009 03:54:17

    #8

    Michael Schwab

    Join date : 2008-09-18      Posts : 87

    ah Ok~gotcha!

    No I need it so they cannot put it in the cart as a partial quantity....... but those other options are helpful too!



    Jan 30 2009 03:59:02

    #9

    anon

    Join date : 2008-09-18      Posts : 488

    The javascript prevents them for putting non-whole numbers into the cart. noqty prevents them from changing them once they are there.

    Add to your form tag:
    onsubmit='return validate_qty(this.qty.value);'

    Add to page head:
    <script type='text/javascript'>
    function validate_qty(qty) {
    if(qty%1 != 0) {
    alert('Quantity must be a whole number');
    return false;
    }
    }
    </script>



    Jan 30 2009 03:59:52

    #10

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    You would need a script to limit what they add to the cart or make your qty field on your website a drop down menu choice.

    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.




       1   |   2      »