Shipping address issues

dewmanshu
Contributor
Contributor

I have a basic coded shopping cart on a website for decals. When making the code for the button I set it up for the customer to be required to give an address for shipping. But even verified customers orders are coming with no address shown. This obviously slows the processing of the order down and unltimately cause rucus when I ask for a shipping addy in an email. I of course get sent to their junk mail and 2 weeks later they are yelling at me. What am I missing here? How do I force the address to be shown on the order details?

 

Thanks in advance.

Login to Me Too
5 REPLIES 5

skier
Advisor
Advisor

Ensure you are using the variable "no_shipping" with a value equal to "2" in your item button code.  This combination tells PayPal to "prompt" the customer for a Shipping Address during the Checkout Process.

<input type="hidden" name="no_shipping" value="2">

 

Regards,

 

skier

Login to Me Too

dewmanshu
Contributor
Contributor

I created the button from paypal and it doesn't have the line you mentioned. So I added it. When I test the cart it causes the default quantity to be (2). If I remove that line the default quantity goes back to one.

Login to Me Too

dewmanshu
Contributor
Contributor

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8875440">
<table>
<tr><td><input type="hidden" name="on0" value="BASIC DECAL- Colors">BASIC DECAL- Colors</td></tr><tr><td><select name="os0">
    <option value="BLUE">BLUE $2.10</option>
    <option value="WHITE">WHITE $2.10</option>
    <option value="RED">RED $2.10</option>
    <option value="SILVER">SILVER $2.10</option>
    <option value="CHROME">CHROME $2.10</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

Login to Me Too

skier
Advisor
Advisor

Unfortunately including that line of code to a "hosted" item button will have no effect.  Here' why:

 

The online button creator generates "hosted" item button code by default, has an item inventory feature and limits you to a maximum of 1,000 saved item code buttons.

The term "hosted" means that specific variables are stored on the PayPal Servers which in turn makes these variables tamper proof. Should you manually add or try to make changes to a "hosted" item button, the changes will be ignored or cause the code to fail. This same feature also limits your ability to customize the code for your specific needs.

You can create "clear text" button code or non-hosted button code online which can then be customized with additional code if desired because the code is not stored on PayPal's Servers. The use of clear text has many advantages as it is more flexible. Listed below are a few reasons for customization.

* Use java scripts.
* Pre-populate the PayPal Screens.
* Dynamically change specific variables such as the "amount" value.
* Need to create a lot of similar buttons using copy and paste.
* Need more that a 1,000 saved item code buttons.
* Require more than 10 text input boxes for Add to Cart Buttons.
* Require more than 2 text input boxes for Buy Now Buttons.
* Need quantity input or quantity selection options on your web page.
* Need amount input or amount selection options on your web page.
* Need to use a different verified email address other than your Account Primary address.
* Need check boxes.
* Need radio buttons.
* Need to customize Subscription Buttons.
* Need to customize Donation Buttons, i.e., add additional text input boxes, check boxes or radio buttons.
* Need a Text/Email or Hyperlink.
* Need to setup button templates.

You can use the the online button creator to save a little coding time. What you need to do is "uncheck" the option for "Save Button At PayPal" in Step 2. Then after you "Create" the button code, in the window that displays the code look for the link that says "Remove Code Protection". Select this link. Your code will be changed to clear text and is now ready for additional customization.

 

As you are using "hosted" item button code there is a feature in the button creation process that you need to check that will prompt the customer for a shipping address during the Checkout Process.   You need to go back and edit your "hosted" item button to enable this feature. 

 

Regards,

 

skier

Login to Me Too

dewmanshu
Contributor
Contributor

thanks skier!

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.