Community Forums 

Main Content

Re:Using quantity discount feature

    Sep 03 2010 22:57:14

    #1

    Yukon4

    Join date : 2008-09-18      Posts : 67

    Hmmm, no, that made no difference. So for each product (I've only done the top 2 in this manner) I have:

    <FORM action="http://ww4.aitsafe.com/cf/add.cfm"; method="post" >
    <input type="hidden" name="userid" value="69243506" />
    <input type="hidden" name="return" value="http://www.soapmolds.com">;
    <input type="hidden" name="qty">
    <INPUT TYPE="HIDDEN" NAME="discountpr" VALUE="24,17.00:1,13.50:0,13.50">


    <INPUT TYPE="TEXT" NAME="product[]" size="2" onKeyUp="tally(this)"><span class="descriptions">Kudos Angels Gather</span>
    <INPUT NAME="product[Kudos Angels Gather]" TYPE="HIDDEN" id="product[Kudos Angels Gather]" VALUE="Kudos Angels Gather">

    <br>
    <INPUT TYPE="TEXT" NAME="product[]" size="2"onKeyUp="tally(this)"><span class="descriptions">Kudos Baby Cow</span>
    <INPUT NAME="product[Kudos Baby Cow Mold]" TYPE="HIDDEN" id="product[Kudos Baby Cow Mold]" VALUE="Kudos Baby Cow Mold">


    Plus this script in the head section of the page:

    <script type="text/javascript">
    function tally(that){
    result=0;
    for(i=0;i<that.form.elements.length;i++)
    {
    if (that.form.elements.name.indexOf("product[]")>-1){result += that.form.elements.value-0;}
    }that.form.qty.value = result;
    }
    </script>


    --- and a closing form tag at the end of it. I really can't see what's missing, but it still says "your cart is empty". Help!