Community Forums 

Main Content

Re:some items discounted, some not

    Aug 24 2009 23:09:01



    Join date : 2008-11-02      Posts : 27

    OK, this is where I am up to with this.
    I find that if a qty of 3 is entered, then the cart shows an incorrect value.
    Even using the amended script above, the cart also shows only the discount for 2 items, even if there are 3 items in the cart.

    Any ideas? here is a live link to test if helpful

    <form action=""; method="post"><input type="hidden" name="return" value=
    ""; /><input type="hidden" name="userid" value="B525045" />

    <a href="">;(See samples of Zalo's work)</a><br />
    <br />
    <table id="buy" summary="buy caricatures online">
    <td colspan="3">
    <div class="subhead"><span style="color:#ff0000">Step 3</span> Choose your caricature product here</div>

    <td id="buy1" valign="top" width="12%"><b>No of people</b></td>
    <td id="buy1" valign="top" width="48%"><b>Product</b></td>
    <td id="buy1" valign="top" width="30%"><b>Price</b></td>
    <td valign="top" width="12%">
    <input type="hidden" name="product1[]" value="Test product" />
    <input type="hidden" name="discountpr1" value="1,10.00:2,9.00:3,8.00" />
    <input size="2" type="text" name="qty1" /></td>
    <td valign="top" width="48%">Test product</td>

    <td valign="top" width="30%"><b>USD 10.00</b> per person</td>
    </table><br />

    <br />
    <br />
    <div class="subhead"><span class="red">Step 5</span> <input type="submit" value="Complete your order" /><input type="reset" value="Reset" /></div><br />