Community Forums 

Main Content

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

    Mar 22 2012 09:37:17



    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:

    <form name="celestial mirror" action="";; 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



    Join date : 2008-09-18      Posts : 3235

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

    This is for a form, not a button Hugh.

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

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