I'm trying to create a custom order page on a hosted shopping cart, therefore I'm working around some limitations. I can use javascript, but I'm not good enough to figure this out.
The code to place each item in the cart is done with a simple html form, but I need to be able to change the price based on the quantity entered by the end user. Is this possible?
ie. if user enters qty 1, price is 5.00, qty 2-5, price is 4.50, qty 6 or more, price is 4.00.
This will need to be repeated many times (30? 50?) on the same page so the code would need to be as short as possible.
Here's a sample of existing code
Thanks for any and all suggestions!Code:<form name="form_1" action="addtocart.aspx" method="post"> <input type="hidden" name="ItemNbr" value="123"> <input type="hidden" name="product" value="SAMPLE"> Qty: <input type="text" name="qty" value=""> <input type="submit" name="submit" value="Add To Cart"> <input type="hidden" name="price" value=""> </form>



Reply With Quote

Bookmarks