Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

WP eStore – How Not to Ask For Shipping Address on PayPal Checkout Page

by

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, 8 months ago by SueChastain.
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • Author
    Posts
  • May 2, 2011 at 7:37 am #3304
    amin007
    Participant

    WP 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 #31942
    dnavarrojr
    Member

    But it still keeps/stores the customer’s email address, right?

    July 26, 2011 at 11:53 pm #31943
    amin007
    Participant

    Yes, it will still store the email address.

    April 14, 2012 at 3:59 pm #31944
    ullat
    Member

    How 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 #31945
    Ivy
    Member

    Unfortunately 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 #31946
    friendsjournal
    Member

    I 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 #31947
    admin
    Keymaster

    It 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 #31948
    friendsjournal
    Member

    Yes, 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 #31949
    admin
    Keymaster

    Okay, 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 #31950
    friendsjournal
    Member

    Thanks!

    February 22, 2013 at 8:59 pm #31951
    dbc1717
    Participant

    Hi. 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 #31952
    dbc1717
    Participant

    I 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 #31953
    wpCommerce
    Moderator

    Hi, 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 #31954
    WebGuy123
    Member

    Hello. 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 #31955
    admin
    Keymaster

    It already does that for shopping cart checkout. Are you not seeing this behavior on your site?

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ