Re: PayPal has unexpectedly returned a blank address
Quote:
Originally Posted by
DrByte
May have found a bug in virtual products handling, by virtue of the way PayPal handles addresses for virtual items.
Try setting your product as "Product Is Virtual" = Yes, Skip Shipping Address.
And make this small code change by adding in the new highlighted line exactly as shown:
/includes/modules/payment/paypalwpp.php, line 1661 (v1.5.0)
Code:
// Check for blank address -- if address received from PayPal is blank, ask the customer to register in the store first and then resume checkout
if ($_SESSION['cart']->get_content_type() != 'virtual')
if ($response['SHIPTONAME'] . $response['SHIPTOSTREET'] . $response['SHIPTOSTREET2'] . $response['SHIPTOCITY'] . $response['SHIPTOSTATE'] . $response['SHIPTOZIP'] . $response['SHIPTOCOUNTRYCODE'] == '') {
Worked like a charm, many thanks
Re: PayPal has unexpectedly returned a blank address
Using pp express, free shipping, shipping address required....gives me sorry we are not shipping to your address at this time on step one of checkout.
Re: PayPal has unexpectedly returned a blank address
Also, I have pp standard running at the same time as express. I tried using standard and checked out successfully with paypal for a $1 item using my CC.
Re: PayPal has unexpectedly returned a blank address
Well I tried express again and everything seems to be working normal.
Re: PayPal has unexpectedly returned a blank address
Since this seems to be the active thread... I have only digital download products & have those set up according to the ZC guides here (as far as product/shipping settings) - if I use the fix and set them all to 'virtual', will that mess up my downloads?
...and along with 'product is virtual->skip shipping address' should I change 'always free shipping->no, normal shipping rules' to 'yes, always free shipping'? I need to comb through my catalog of 700+ products and I want to be sure I make the correct changes. :-)
Re: PayPal has unexpectedly returned a blank address
Please completely ignore my note above.
To anyone else wondering, digital products *are* virtual already (duh me) - so all I needed to do was the code fix Dr. Byte suggests in post #21.
Good luck to everyone else having trouble!
Re: PayPal has unexpectedly returned a blank address
I have this problem also but I do not have the file shown here in the directory listed here
dudley
Re: PayPal has unexpectedly returned a blank address
Quote:
Originally Posted by
n8tnu1951
but I do not have the file shown here in the directory listed here
... um. Check again. If you don't have that file then you're using an extremely old version of Zen Cart ... like 1.3.6 or older ... and that would be just, well, a very bad choice since that's like from 2006.
Re: PayPal has unexpectedly returned a blank address
we are using version v.1.5.1 and the code is supposedly fixed in this version. We also do have the products as Virtual products with Yes, Skip Shipping Address. We are still getting this geographic region error.
There has to be something else wrong or not set right?
Help! Thanks in advance
We are using:
Server 2008
PHP 5.4.10
Zencart 1.5.1
We are not asking for a shipping address for customers when they registered as a user. In ther New User - we have only one country "Canada" As per "What country/state deletions have you done?" We are in Canada and have deleted all the other countries - We do not ask for a "state or Prov" as we do not want it keep this information.
Re: PayPal has unexpectedly returned a blank address
So we changed payments to the PayPal Standard Version and the Cart Works !!! Uninstalled PayPal Express
Database Host: localhost (127.0.0.1)
Server OS: Windows NT YXD 6.1 build 7601 (Windows Server 2008 R2 Datacenter Edition Service Pack 1) i586
Database: MySQL 5.5.28
HTTP Server: Microsoft-IIS/7.5
PHP Version: 5.4.10 (Zend: 2.4.0)
PHP Memory Limit: 1024M
PHP Safe Mode: Off
PHP File Uploads: On
Max Size: 20M POST Max Size: 20M
Database Data Size: 334 kB Database Index Size: 488 kB
Quote:
Originally Posted by
Tuner
we are using version v.1.5.1 and the code is supposedly fixed in this version. We also do have the products as Virtual products with Yes, Skip Shipping Address. We are still getting this geographic region error.
There has to be something else wrong or not set right?
Help! Thanks in advance
We are using:
Server 2008
PHP 5.4.10
Zencart 1.5.1
We are not asking for a shipping address for customers when they registered as a user. In ther New User - we have only one country "Canada" As per "What country/state deletions have you done?" We are in Canada and have deleted all the other countries - We do not ask for a "state or Prov" as we do not want it keep this information.