Community Forums 

Main Content

Discount using discountpr results errors

    Jan 24 2015 10:13:11

    #1

    Bacchus

    Join date : 2014-12-04      Posts : 57

    Using the following form trying to use discountpr as I understand how to set it up. with the following configuration I am getting when testing in shopping cart:
    - $0.00 for quantity under 36 - which i want
    - $36.00 for over quantity 36 - which i want
    - but the other discount ranges don't work properly.
    instead at quantity 85 the price in the cart is $16.99 and quantity 86 the prices changes to $15.99. Until quantity 186 the price remains at $15.99, at 187 price changes to $15.49.
    Maybe someone else can see the reason for the error?

    <FORM METHOD="POST" ACTION="http://ww8.aitsafe.com/cf/add.cfm">;
    <INPUT TYPE="HIDDEN" NAME="userid" VALUE="xxxxxxx">
    <INPUT TYPE="HIDDEN" NAME="scode" VALUE="9250">
    <INPUT TYPE="HIDDEN" NAME="product" VALUE=" Coaster Set 4 Engraved">
    <input type="hidden" name="discountpr" value ="35,x.xx:50,16.99:101,15.99:150,15.49;0,15.29">
    <input type="hidden" name="qty" value="1">
    <input type="hidden" name="return" value="www.xxxxx.html">;
    <input type="hidden" name="units" value="2.3">
    <input type="hidden" name="tax" value="0">

    <input type="text" size="4" name="qty"><FONT FACE="arial, Helvetica, Sans-Serif" SIZE="-1" COLOR="#333333"> Quantity </font> <br><br>

    Enter text to be engraved below, separate variations by using comma
    <br> (example: Port, Burgundy, etc.)<br>
    If multiple lines, use Line 1: Line 2: <br>(example: Line 1: Port , Line 2: Ken & Janice)<br><br>
    <textarea name="product” rows="3" cols="60"></TEXTAREA>
    <br><br>
    <INPUT type="image" src="images/cartadd.gif">
    </FORM>

    Bacchus




    Jan 24 2015 11:36:23

    #2

    GT

    Join date : 2008-09-18      Posts : 3207

    You have set the discount as:

    Up to 35 are xxx
    Up to 85 (35 + 50) are 16.99
    Up to 186 (85 + 101) are 15.99
    Up to 336 (186 + 150) are 15.49
    Any number over 336 are 15.29.

    With discounts, as you can see, the numbers are added together.

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

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




    Jan 24 2015 11:56:18

    #3

    Bacchus

    Join date : 2014-12-04      Posts : 57

    GT said You have set the discount as:

    Up to 35 are xxx
    Up to 85 (35 + 50) are 16.99
    Up to 186 (85 + 101) are 15.99
    Up to 336 (186 + 150) are 15.49
    Any number over 336 are 15.29.

    With discounts, as you can see, the numbers are added together.

    Actually the example I'd seen looked more logical but I understand the concept now.
    Is this correct then?
    "35,x.xx:15,16.99:50,15.99:50,15.49;0,15.29"
    Up to 50 is 16.99
    Up to 100 is 15.99
    Up to 150 is 15.49
    over 150 is 15.29

    Bacchus




    Jan 24 2015 16:53:49

    #4

    GT

    Join date : 2008-09-18      Posts : 3207

    Yes.

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

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