Multiple Pay Buttons and Multiple Mail Chimp Lists
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to set up a program for someone I work for. They are offering a program that can be bought in whole or in smaller pieces. We are trying to figure out how to create a button that can offer all the pieces but will also ensure that when they buy the piece they want they are sent to the correct Mailchimp list. Is this a possibility or do I need to set up a different button for each product?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The type of code you need may have to custom coded with a script that manages the selections and passes those choices to the PayPal Checkout Screens. One thought would be to setup a HTML Form that has check boxes where as there can be one for all or allow separate items to be selected - that way they can pay for what they need. Bottom line, the online button creator is great however, when your needs are outside the box, the code needs to be manually created.
As there are many ways to do what you have in mind, one suggestion would be to use the "upload" method with a script to manage the check box selections. Below is a basic example of how this can be done.
<!DOCTYPE html> <html lang="en"> <head> <title>Upload Method Example</title> <!-- START META TAG SECTION --> <meta name="Description" content=""> <meta name="KeyWords" content=""> <meta charset="UTF-8"> <!-- END META TAG SECTION --> <!-- Start of Script --> <SCRIPT LANGUAGE="JavaScript"><!-- var count=1; function codename() { count=1; document.formname.item_name_1.value=''; document.formname.item_name_2.value=''; document.formname.item_name_3.value=''; document.formname.item_name_4.value=''; document.formname.amount_1.value=''; document.formname.amount_2.value=''; document.formname.amount_3.value=''; document.formname.amount_4.value=''; if(document.formname.item1.checked) { document.formname.item_name_1.value = "Item 1"; document.formname.amount_1.value = "2.00"; count=count+1; } if(document.formname.item2.checked) { if(count==2){ document.formname.item_name_2.value = "Item 2"; document.formname.amount_2.value = "5.00"; count=count+1; } if(count==1){ document.formname.item_name_1.value = "Item 2"; document.formname.amount_1.value = "5.00"; count=count+1; } } if(document.formname.item3.checked) { if(count==3){ document.formname.item_name_3.value = "Item 3"; document.formname.amount_3.value = "9.00"; count=count+1; } if(count==2){ document.formname.item_name_2.value = "Item 3"; document.formname.amount_2.value = "9.00"; count=count+1; } if(count==1){ document.formname.item_name_1.value = "Item 3"; document.formname.amount_1.value = "9.00"; count=count+1; } } if(document.formname.item4.checked) { if(count==4){ document.formname.item_name_4.value = "Item 4"; document.formname.amount_4.value = "11.00"; count=count+1; } if(count==3){ document.formname.item_name_3.value = "Item 4"; document.formname.amount_3.value = "11.00"; count=count+1; } if(count==2){ document.formname.item_name_2.value = "Item 4"; document.formname.amount_2.value = "11.00"; count=count+1; } if(count==1){ document.formname.item_name_1.value = "Item 4"; document.formname.amount_1.value = "11.00"; count=count+1; } } } //--> </SCRIPT> <!-- End of Script --> </head> <body> <!-- START SAMPLE CODE SECTION --> <!-- PARAGRAPH 1 --> Upload Method Examples <br><br> Check Boxes Utilizing a Script. <br><br><br> <form name="formname" target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID --> <input type="hidden" name="business" value="your PayPal Email Address or your Merchant Account ID"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="button_subtype" value="products"> <input type="hidden" name="no_note" value="0"> <input type="hidden" name="bn" value="PP-ShopCartBF:btn_paynowCC_LG.gif:NonHosted"> <input type="hidden" name="amount_1"> <input type="hidden" name="amount_2"> <input type="hidden" name="amount_3"> <input type="hidden" name="amount_4"> <input type="hidden" name="item_name_1"> <input type="hidden" name="item_name_2"> <input type="hidden" name="item_name_3"> <input type="hidden" name="item_name_4"> <table> <tr> <td>CheckBox </td> <td>Item </td> <td>Price </td> </tr> <tr> <td> <input type="checkbox" name="item1" value="Item 1"></td> <td>Item 1 </td> <td>$2.00</td> </tr> <tr> <td> <input type="checkbox" name="item2" value="Item 2"></td> <td>Item 2 </td> <td>$5.00</td> </tr> <tr> <td> <input type="checkbox" name="item3" value="Item 3"></td> <td>Item 3 </td> <td>$9.00</td> </tr> <tr> <td> <input type="checkbox" name="item4" value="Item 4"></td> <td>Item 4 </td> <td>$11.00</td> </tr> </table> <br> <input type="button" value="Reset Form" onClick="this.form.reset()"> <br><br> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" onclick="codename()" alt="Make payments with PayPal - it's fast, free and secure!"> <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> <!-- END BUTTON EXAMPLES --> <!-- END SAMPLE CODE SECTION --> <br><br><br><br> <hr align="left" width="50%" noshade> <br><br> NOTES: <br> In order to test the code, you must replace the "business" value variable with your PayPal Email Address or your Merchant Account ID. </body> </html>

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Might have unauthorised payments on my bank account in Access and security
- How to change default card payment (in ebay and others) in Buying with PayPal
- printing shipping lanels from my fed ex account in About eBay
- Hold of pending funds in About Payments
- Payment on multiple items with different terms. in About Products