Community Forums 

Main Content

duplicate items

    Nov 22 2017 11:27:08

    #1

    pcguy

    Join date : 2008-09-18      Posts : 130

    where in this code can I use discountpr to stop items duplicating in the cart

    Unbleached White Flour
    <form action="http://ww9.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="hidden" name="userid" value="B1179345">
    <input type="hidden" name="thumb" value="logo.png">
    <input type="hidden" name="return" value="www.jennysgrainfree.com.au">;
    <input type="hidden" name="qty1" value="">


    <select name="productpr1">
    <option value="">Product options</option>
    <option value="Unbleached White Flour 1Kg:4.95">1Kg $4.95</option>
    <option value="Unbleached White Flour 5Kg:19.95">5Kg $19.95</option>
    <option value="Unbleached White Flour 20Kg:66.00">20Kg $66.00</option>
    </select>

    <select name="qty1" value="">
    <option VALUE="1">1</option>
    <option VALUE="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option VALUE="5">5</option>
    <option VALUE="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option VALUE="9">9</option>
    <option value="10">10</option>
    </select>



    <br><br>
    <input type="submit" value="Add to Cart">
    </form>



    Nov 22 2017 12:57:48

    #2

    Alan

    Join date : 2008-09-18      Posts : 2950

    If you mean avoiding two cart lines each with 1kg of flour in favour of one line with qty 2, I think the answer is you can't.

    If you specify both productpr and discountpr, the latter will win the price battle. So you would need to define three products and use discountpr for each.

    Alan
    Some shipping help documents are available at www.stoner.org.uk/mals/