Community Forums 

Main Content

Re:Using quantity discount feature

    Sep 03 2010 22:57:14



    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=""; method="post" >
    <input type="hidden" name="userid" value="69243506" />
    <input type="hidden" name="return" value="">;
    <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">

    <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){
    if ("product[]")>-1){result += that.form.elements.value-0;}
    }that.form.qty.value = result;

    --- 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!