If you are creating buy now button by hand and if you want to give customers an option when they are buying a product with PHP-eSeller, you can easily do this using a drop down list.
An example might be :
<form action="http://www.yourservername/eseller/ipn/process.php" method="post">
<select name="item_number">
<option value="">Select a product</option>
<option value="item_a">Small $1.00</option>
<option value="item_b">Medium sized file $2.00</option>
<option value="item_c">Large file $3.00</option>
</select>
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
You will need to create three products with item_number of item_a, item_b and item_c. The customer then selects which one they require and click the buy now button which takes them to PayPal.
2 responses so far ↓
1 TheSailingChannel // Nov 30, 2008 at 11:09 pm
I’ve been looking for an easier way to offer two different shipping options: U.S. and International. I’ve already created two different products with the respective shipping cost built into the sales price. Right now, each product has its own BUY button. With a drop down list, I can create one BUY button that allows the purchaser to select the product with the appropriate shipping cost. I’ll give it a try.
2 ddownloads // Mar 15, 2009 at 2:11 am
What if I wanted to use checkboxes? Does Paypal’s process.php handle mutiple items? What if I wanted to use checkboxes to add items to the template system’s cart?
You must log in to post a comment.