Community Forums 

Main Content

Maximum Qty.......(again)

    Mar 22 2012 09:37:17

    #1

    Hugh

    Join date : 2012-03-15      Posts : 9

    I am trying to enter script to
    put a limit on the amount that can be ordered.

    I came across this topic:
    http://www.mals-e.com/viewtopic.php?id=16941&mid=16941&fid=2

    <form name="celestial mirror" action="http://ww7.aitsafe.com/cf/add.cfm";; method="post" onsubmit="if(this.qty.value>1){alert('Maximum of 1 please');this.qty.value=2;return false;}">

    I wondered if this provides a clue to how best to achieve this.
    But I still confused as to where to add such script.

    I'm using Web Plus X5 - have set up a ECommerce button using the single add to basket (simple button without options).

    Any suggestions or guidance would be greatly appreciated.



    Mar 22 2012 09:59:58

    #2

    GT

    Join date : 2008-09-18      Posts : 3212

    That doesn't stop 100 people ordering though...

    This is for a form, not a button Hugh.

    http://www.malsforms.com/maximum.html

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.