Jump to content

Recommended Posts

Posted

Hi just need a little help. 
I’m using the recommended donate HTML on our basket so customers can add a charity donation to their order. 
I’d like to also make it possible to add a text/comments box so that if they wish to add a note they can and it will show up in the cart. I did try to add to it and managed to get a text box but when clicking ‘Donate’ the comments didn’t show in the basket so I deleted my attempt. This is the basic donate HTML I have so far from Romancart website.:

<form action="https://www.romancart.com/cart.asp"method="post">
<input type="hidden" name="itemname" value="Donation">
Amount to Donate: <input type="text" name="price" value="" size="6">
<input type="hidden" name="storeid" value="10000">
<input type="hidden" name="quantity" value="1">
<input type="submit" value="Donate">
</form>

Posted

Put something like this in your form:

<textarea id="comments" name="comments"
          rows="5" cols="33">
  Please add any comments here.
</textarea>

You will have to parse for this information in your server side code. It depends if the cart.asp page supports extra form field procession. 

BTW, .asp is really old tech! I used to use it .... about 250 years ago! 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...