Community Forums 

Main Content

dont want to show qty in cart

    Aug 08 2014 09:00:00

    #1

    totr

    Join date : 2010-04-03      Posts : 17

    Hi

    I have this script but when I go to the cart it still allows the end user to update the qty, where am I going wrong ? plus the value sd does not pass through with the remote call - the other fields work pass through correctly

    <form method="post" action="http://ww8.aitsafe.com/cf/add.cfm?userid=
    XXXXXXX&return=http://mydomian.com/view-event.php?ve=154&sd=48&ed=1&ci=48">
    <h3>Price incl. booking fee: 25.00</h3>

    <input name="userid" type="hidden" id="userid" value="XXXXXXX" />
    <input type="hidden" name="sd" id="sd" value="48">
    <input name="product[]" type="hidden" id="product[]" value="Howth Mararthon on 2014-10-27 at 8.00am" />
    <input name="product[]" type="hidden" id="product[]" value="Dublin Bay Running Clubs" />
    <input name="product[]" type="hidden" id="product[]" value="fHW4h6SoF4" />
    <input type="hidden" name="noqty1" value="1">
    <input type = "hidden" name = "price" id = "price" value="25.00" />
    <input type="hidden" name="nocart" value="1" />
    <input name="submit2" type="submit" class="form" id="submit" value="Buy Now" />

    </form>

    Thanks for any help in advance
    Eric



    Aug 08 2014 13:40:19

    #2

    GT

    Join date : 2008-09-18      Posts : 3207

    Your form line is a link not a form....

    Also, you have no qty value passed to the cart.

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

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




    Aug 08 2014 14:17:06

    #3

    totr

    Join date : 2010-04-03      Posts : 17

    GT said Your form line is a link not a form....

    Also, you have no qty value passed to the cart.


    Cheers GT for the heads up thats probably the reason the sd value is not been passed, is there a way it can be done with a link that you have ever come across ?

    Once again thanks in advance
    Eric



    Aug 08 2014 14:31:18

    #4

    totr

    Join date : 2010-04-03      Posts : 17

    Hi

    I have modified the form now but it is still showing the qty in the cart

    <form action="http://ww8.aitsafe.com/cf/add.cfm"; method="post">
    <input name="return" value="http://www.mydomain.ie.com"; type="hidden">
    <h3>Price incl. booking fee: 25.00</h3>

    <input name="userid" type="hidden" id="userid" value="XXXXXXX" />
    <input type="hidden" name="sd" id="sd" value="48">
    <input name="product[]" type="hidden" id="product[]" value="Howth Mararthon on 2014-10-27 at 8.00am" />
    <input name="product[]" type="hidden" id="product[]" value="Dublin Bay Running Clubs" />
    <input name="product[]" type="hidden" id="product[]" value="fHW4h6SoF4" />
    <input type="hidden" name="qty" value="1">
    <input type="hidden" name="noqty1" value="1">
    <input type = "hidden" name = "price" id = "price" value="25.00" />
    <input name="submit" type="submit" class="form" id="submit" value="Buy Now" />

    </form>

    Any help is appreciated
    Eric



    Aug 08 2014 16:05:17

    #5

    totr

    Join date : 2010-04-03      Posts : 17

    I found the error

    I just changed the line to :

    <input name="noqty" type="hidden" value="1 - no qty box">

    and it works perefctly now. hope this helps someone else with this isssue

    Eric