Request two addresses at checkout?

rickvv
Contributor
Contributor

Using a standard button setup in Merchant Tools, How can I request a second address from the customer during checkout?

We are selling a class, and often need to get an additional address (someone with PayPal is buying a class for someone else...we need the actual participant's address, if different from the purchaser's address) .

I've looked at the custom HTML, but I'm not quite sure if any of those codes are doing what I'm looking for.

 

Related to this, who can we capture the participant's phone number as a required field somewhere?

 

Thanks for any help, or links to the answer...

rickvv

Login to Me Too
5 REPLIES 5

rickvv
Contributor
Contributor

No one has anything on this?

Please take a second to link to the answer if you don't have time to answer.

Thanks

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

You would have to do a bit of manual custom programming or scripting to get the additional information and include a required field to collect the phone number.   The online button creator does not support the additional features you require.  If you're into coding your own stuff, the example below should provide a few ideas of how to do what you have in mind.

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Button Example Code</title>

<!-- START META TAG SECTION -->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="Content-Language" content="en">
<!-- END META TAG SECTION -->

<!-- Start of Script -->
<script type="text/javascript">
<!--
function CheckForm(obj1) { 

 if (obj1.os2.value == ""){
  alert ("You must fill in a value for Option 1!");
  return false;
 }
 else if (obj1.os3.value == ""){
  alert ("You must fill in a value for Option 2!");
  return false;
 }
 else if (obj1.os4.value == ""){
  alert ("You must fill in a value for Option 3!");
  return false;
 }
 else if (obj1.os5.value == ""){
  alert ("You must fill in a value for Option 4!");
  return false;
 }
 return true;
}
//-->
</script>
<!-- End of Script -->
   
</head>

<body>

<!-- START SAMPLE CODE SECTION -->


<!-- PARAGRAPH 1 -->
Combination Examples

<br><br>

A Good Example of Required Option Input Variables.&nbsp;&nbsp; Price Selection and Quantity Input.
<br>
This example requires a script validate the required fields.


<br><br>
<hr align="left" width="50%" noshade>
<br><br>

<!-- START CONTENTS -->

<!-- START BUTTON EXAMPLES -->

<!-- Start of Buy Now Button Form -->

Widget
<br><br> 
<form name="paypal" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="return CheckForm(this);">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable in your View Cart code. -->
<input type="hidden" name="cpp_header_image" value="https://static.e-junkie.com/sslpic/86639.7c555e9a35606a4c310ad6ce4e465d50.jpg">
<input type="hidden" name="cmd" value="_xclick">
<!-- Replace "business" value with your PayPal Email Address or Account ID -->
<input type="hidden" name="business" value="your email address @ yoursite.com">
<input type="hidden" name="item_name" value="Widget">
<input type="hidden" name="item_number" value="W-10001">
<!-- Replace value with the web page you want the customer to return to after a successful transaction -->
<input type="hidden" name="return" value="http://www.jkstudiollc.com/ZZcode/ThankYou.html">
<!-- Replace value with the web page you want the customer to return to after item cancellation -->
<input type="hidden" name="cancel_return" value="http://www.jkstudiollc.com/ZZcode/Cancel.html">
<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="cn" value="Add special instructions to the seller:">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHosted">
            
Select Color:&#160;&#160;
<input type="hidden" name="on0" value="Color">
<select name="os0">
<option value="Gold" selected>Gold</option>
<option value="Silver">Silver</option>
<option value="Bronze">Bronze</option>
</select>

<br><br>
Select Size:&#160;&#160;
<input type="hidden" name="on1" value="Size">
<select name="os1">
<option value="1x1" selected>1&#34; x 1&#34; - $1.00</option>
<option value="2x2">2&#34; x 2&#34; - $2.00</option>
<option value="3x3">3&#34; x 3&#34; - $3.00</option>
<option value="4x4">4&#34; x 4&#34; - $4.00</option>
<option value="5x5">5&#34; x 5&#34; - $5.00</option>
<option value="6x6">6&#34; x 6&#34; - $6.00</option>
<option value="7x7">7&#34; x 7&#34; - $7.00</option>
<option value="8x8">8&#34; x 8&#34; - $8.00</option>
<option value="9x9">9&#34; x 9&#34; - $9.00</option>
</select>


<!-- option_index value=0 is associated with variable on0 -->
<!-- option_index value=1 is associated with variable on1 -->
<input type="hidden" name="option_index" value="1">
<input type="hidden" name="option_select0" value="1x1">
<input type="hidden" name="option_amount0" value="1.00">
<input type="hidden" name="option_select1" value="2x2">
<input type="hidden" name="option_amount1" value="2.00">
<input type="hidden" name="option_select2" value="3x3">
<input type="hidden" name="option_amount2" value="3.00">
<input type="hidden" name="option_select3" value="4x4">
<input type="hidden" name="option_amount3" value="4.00">
<input type="hidden" name="option_select4" value="5x5">
<input type="hidden" name="option_amount4" value="5.00">
<input type="hidden" name="option_select5" value="6x6">
<input type="hidden" name="option_amount5" value="6.00">
<input type="hidden" name="option_select6" value="7x7">
<input type="hidden" name="option_amount6" value="7.00">
<input type="hidden" name="option_select7" value="8x8">
<input type="hidden" name="option_amount7" value="8.00">
<input type="hidden" name="option_select8" value="9x9">
<input type="hidden" name="option_amount8" value="9.00">

<br><br>
Enter Quantity:&#160;&#160;
<input type="text" name="quantity" size="1">

<br><br>
<input type="hidden" name="on2" value="Option1">
Text Option 1:&#160;&#160; <input type="text" name="os2" value="">
&#160;(required)

<br><br>
<input type="hidden" name="on3" value="Option2">
Text Option 2:&#160;&#160; <input type="text" name="os3" value="">
&#160;(required)

<br><br>
<input type="hidden" name="on4" value="Option3">
Text Option 3:&#160;&#160; <input type="text" name="os4" value="">
&#160;(required)

<br><br>
<input type="hidden" name="on5" value="Option4">
Text Option 4:&#160;&#160; <input type="text" name="os5" value="">
&#160;(required)

<br><br>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">

<br><br>
<input type="button" value="Reset Form" onClick="this.form.reset()">
</form>
<!-- End of Buy Now Button Form -->


<!-- END BUTTON EXAMPLES -->



<!-- END SAMPLE CODE SECTION -->

<br><br>


</body>
</html>

 

Login to Me Too

rickvv
Contributor
Contributor

Awesome. Thanks. Looks like a lot of "extra work". Not all bad, but I'm not sure the client wants to do this "that badly".

I appreciate your help,

rickvv

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

No worries, that's what you have to do when folks want something different.

Login to Me Too

PonyPoor
Contributor
Contributor

hey thanks for this code.  I've gotten some of it to work but not all of it.  Let me add that I really don't know what I'm doing.  

 

I've gotten the cancel and thank you urls to work.  I've tried changing the cpp_header_image value to point at one of mine and that doesn't work; the TestWidget logo is still showing: 

 

<input type="hidden" name="cpp_header_image" value="http://www.floridahorsetrialsassn.com/public_html/Miscellaneous_files/fhtalogo3.gif">

 

I'm trying to change some of the text on the form like this and it's apparently not correct:

 

<input type="hidden" name="item_name" value="FHTA Membership">
<input type="hidden" name="item_number" value="Membership">

 

Is there hope for me?  

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.