Zen Cart Logo
Forums / PayPal Express Checkout support / Paypal Express Checkout "Delivery Name"

Paypal Express Checkout "Delivery Name"

Locked

Views: 4,514

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
12 Apr 2010, 10:56 AM
#1
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Paypal Express Checkout "Delivery Name"

Hi,
just trying out zencart and came accross an issue with paypal express, when using paypal express and if i select a different shipping name and address in paypal it brings back the shipping address ok but it uses the billing name, had a look on this forum but so far cant find a fix

thanks for any help
Bryan

12 Apr 2010, 1:18 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal Express Checkout "Delivery Name"

Zen Cart just uses the name supplied by PayPal.

12 Apr 2010, 2:23 PM
#3
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Paypal Express Checkout "Delivery Name"

thanks for you reply
paypal do supply the SHIPTONAME field and in creloaded i was able to find where it needed changed but cant find it in zencart

any idea which files it uses during express checkout so i can try to find it

thanks
Bryan

12 Apr 2010, 3:51 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal Express Checkout "Delivery Name"

That's exactly my point. Zen Cart uses SHIPTONAME supplied by PayPal.

12 Apr 2010, 4:08 PM
#5
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Paypal Express Checkout "Delivery Name"

thanks, seems strange in cre it brings over the delivery name

thanks
Bryan

12 Apr 2010, 8:40 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal Express Checkout "Delivery Name"

I'm guessing you're selecting merely a different name at the same physical address?

13 Apr 2010, 5:15 PM
#7
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Paypal Express Checkout "Delivery Name"

no in zencart if i select a different shipping name and address in paypal it only brings over the shipping address and not the shipping name, it defaults to the payer name, if i select the same shipping name and address when trying out oscommerce or creloaded that i use it brings over the shipping name and address, i did have to alter the cre version to do this but was hoping to try the same in zencart

i think it makes sense for the delivery to have the delivery name and not the payer name

thanks
bryan

13 Apr 2010, 5:22 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal Express Checkout "Delivery Name"

I've checked in v1.3.9, and if the address is different, it creates the new address book entry with the delivery name, and uses that. However, if the street/city/state/zip details are the same, then the existing address book entry is used regardless of the person's name.

If you want to hack it to include the name in the check, feel free.

13 Apr 2010, 5:42 PM
#9
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Paypal Express Checkout "Delivery Name"

thanks for your very quick response, i will give 1.3.9 a try. i must say i am very impressed with zencart

thanks a lot doc
Bryan

13 Apr 2010, 7:09 PM
#10
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Paypal Express Checkout "Delivery Name"

just tried 1.3.9 and getting the same

http://www.catchagrip.co.uk/zen139

any body point me which file to look at

thanks
Bryan

17 Apr 2010, 11:31 PM
#11
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: Paypal Express Checkout "Delivery Name"

If you want to hack it to include the name in the check, feel free.

Help please. I to would like to use the SHIPTONAME the customer supplied.

18 Apr 2010, 12:18 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal Express Checkout "Delivery Name"

My tests in 1.3.9 show that it does, as long as the address selected doesn't already exist in Zen Cart.

18 Apr 2010, 4:35 AM
#13
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: Paypal Express Checkout "Delivery Name"

What is the disadvantage of bring over the SHIPTONAME from the PayPal data string, all the time?

18 Apr 2010, 11:49 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal Express Checkout "Delivery Name"

Cluttered duplicate addresses needlessly, esp if the customer's "Name" in ZC is "Brad Smith" and in PayPal they've got it as "Bradley Smith", or more complicated situations involving initials or accents etc.

21 Apr 2010, 8:41 PM
#15
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Paypal Express Checkout "Delivery Name"

i just ended up bringing over the shiptoname into the business name,
works fine for me so far

it shows both buyer name and ship to name

bryan

22 Apr 2010, 12:41 AM
#16
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: Paypal Express Checkout "Delivery Name"

bn17311:

i just ended up bringing over the shiptoname into the business name,
works fine for me so far

it shows both buyer name and ship to name

bryan

I would like to see how you did it.
Would you share your code?

Dennis

22 Apr 2010, 7:21 AM
#17
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Paypal Express Checkout "Delivery Name"

hi,
at line 1933 on my includes/modules/paypalwpp.php file i added

'entry_company' => $paypal_ec_payer_info['ship_name'],

so it now looks like this

$sql_data_array = array(
        'customers_id'              => $customer_id,
        'entry_gender'              => $paypal_ec_payer_info['payer_gender'],
	'entry_company'              => $paypal_ec_payer_info['ship_name'],

        

i also formatted the postcode for anyone using postcode based shipping in the uk if anyone needs it.

im no expert but the above works for me

thanks
bryan