Forum
categories in form options
Hello I'm looking for the best way to integrate categories into a paypal payment form on my portfolio item template.
This is the kind of form I am using but need to add the list of categories selected in the select options. What would be the best way of doing this?
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" style="margin: 0px">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="your@email.com">
<input type="hidden" name="item_name" value="Your Item Name">
<input type="hidden" name="custom" value="">
<input type="hidden" name="return" value="https://your-domain.com/thanks-payment.htm">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="quanity" value="1">
<input type="hidden" name="add" value="1">
<select name="amount" style="width:150px;font:9px;margin-top:4px">
<option value="35.00">Price Option 1 $35.00</option>
<option value="55.00">Price Option 2 $55.00</option>
<option value="75.00">Price Option 3 $75.00</option>
</select><br>
<input type="hidden" name="on0" value="Add your item description">
<input type="hidden" name="os0" value="Item Details or Name">
<input type="image" src="picts/cart-add.gif" border="0" name="submit" alt="Add to Cart" vspace="4"><br>
</form>
Thank you
Ok, how can we help?
I have managed to just about do it al but the only issue I have is passing the catTitle through the form to paypal as a hidden field. I cannot seem to find a way to include this with the perch:categories tags and still keep the form options working correctly.
My template currently looks like this
Any ideas? So basically I am using perch categories for various product options and need to include somewhere something like this <input type="hidden" name="item_name" value="<perch:category id="catTitle" />"> to show my product selection in perch.
Hope you can help.