Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › WP eStore – How Not to Ask For Shipping Address on PayPal Checkout Page
Tagged: address, digital, digital product, PayPal, paypal order, shipping
- This topic has 23 replies, 11 voices, and was last updated 10 years, 5 months ago by
SueChastain.
-
AuthorPosts
-
May 2, 2011 at 7:37 am #3304
amin007
ParticipantWP eStore will ask your customer for address when they checkout a physical product that has shipping requirement. For digital item checkout it will prompt for an address but the address is not required.
If you want to make it so you never want to ask for the address then follow this tweak.
The tweak in this post applies to the “Add to Cart” button types of WP eStore plugin.
Never Collect Address on PayPal Checkout Page
Add the following PHP code to your theme’s functions.php file:
add_filter('eStore_pp_checkout_no_shipping_value', 'custom_tweak_to_remove_address_prompt');
function custom_tweak_to_remove_address_prompt($value)
{
$value = '1';
return $value;
}Remember, if you do this change then no address will be stored in the manage customers menu.
Always Force Customers to Enter an Address on PayPal Checkout Page
Add the following PHP code to your theme’s functions.php file:
add_filter('eStore_pp_checkout_no_shipping_value', 'custom_tweak_to_force_address_collection');
function custom_tweak_to_force_address_collection($value)
{
$value = '2';
return $value;
}July 26, 2011 at 9:59 am #31942dnavarrojr
MemberBut it still keeps/stores the customer’s email address, right?
July 26, 2011 at 11:53 pm #31943amin007
ParticipantYes, it will still store the email address.
April 14, 2012 at 3:59 pm #31944ullat
MemberHow about the form for customers without a paypal-account (credit card payment). Can I remove/hide the address fields from this one as well?
April 15, 2012 at 1:22 am #31945Ivy
MemberUnfortunately PayPal does not allow you to hide this information for credit card purchase as it needs this to verify the credit card.
June 21, 2012 at 7:23 pm #31946friendsjournal
MemberI would like to force collection of shipping address, but the code block noted above is more complex in the current version of eStore_payment_submission.php (WP eStore v. 6.75). What is the correct change to make?
June 22, 2012 at 4:45 am #31947admin
KeymasterIt will force the address collection for any checkout with a shipping amount. So my question to you is the following:
Do you want to force address collection for each checkout regardless if the item is digital or physical?
June 29, 2012 at 4:18 pm #31948friendsjournal
MemberYes, I’d like to force address collection for each checkout regardless if the item is digital or physical. The Shipping=$0.001 workaround works, but I’d rather not have to use it.
June 30, 2012 at 3:16 am #31949admin
KeymasterOkay, I have updated the 1st post which should answer your question. Please check the “Always Force Customer to Enter an Address” section in the first post of this tread.
July 12, 2012 at 9:15 pm #31950friendsjournal
MemberThanks!
February 22, 2013 at 8:59 pm #31951dbc1717
ParticipantHi. I am using estore 6.4.9 and tried the fix given above:
Once you find it, add the following line just below the above mentioned line:
$myPaypal->addField(‘no_shipping’, ‘2’);
To try and force paypal to collect an address. I am using a “buy now” button.
Unfortunately, when I log onto paypal, I have no address. What did I do wrong?
Thanks
February 22, 2013 at 11:30 pm #31952dbc1717
ParticipantI did try the trick of adding .001 in shipping. Is there any disadvantage of doing this if we do not have a better fix?
February 22, 2013 at 11:32 pm #31953wpCommerce
ModeratorHi, Can you please install a fresh copy of the plugin first:
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
May 21, 2014 at 3:02 pm #31954WebGuy123
MemberHello. Is it possible to configure the add to cart button (or the buy now button) to only ask for shipping address on physical products, but to not display the shipping address fields for digital products on PayPal? We sell both physical and digital products and do not want people that order digital products to be asked for a shipping address. Please advise.
May 22, 2014 at 12:19 am #31955admin
KeymasterIt already does that for shopping cart checkout. Are you not seeing this behavior on your site?
-
AuthorPosts
- You must be logged in to reply to this topic.