close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Ecart not sending Shipping Last Name to Paypal

Thread began 5/02/2014 8:31 am by bill173836 | Last modified 4/26/2017 4:20 pm by Ray Borduin | 2046 views | 8 replies |

bill173836

Ecart not sending Shipping Last Name to Paypal

I just learned that the shipping last name isn't being sent to paypal. It appears all the other data is working correctly even the first name but not the last. Here are the 2 confirm pages. I'm assuming this gets sent on the confirm pages so I'm sending those for your review. Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

on the confirm page, change:

$PP_DirectPayment_optional[0][$nextIndex] = "SH_Name";
$PP_DirectPayment_optional[1][$nextIndex] = "".((isset($_POST["shipping_firstname"]))?$_POST["shipping_firstname"]:"") ."";




to:

$PP_DirectPayment_optional[0][$nextIndex] = "SH_Name";
$PP_DirectPayment_optional[1][$nextIndex] = "".((isset($_POST["shipping_firstname"]))?$_POST["shipping_firstname"]:"") ." ".((isset($_POST["shipping_lastname"]))?$_POST["shipping_lastname"]:"") .";
Sign in to reply to this post

bill173836

Do I do this also to the pp_confirm.php or was it okay?
Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

the pp_confirm page does not send info to paypal, it receives info back from paypal.

do you have the same probelmwhen using paypal express checkout?

That would be on the checkout or confirm cart page i believe.

Sign in to reply to this post

bill173836

The code kept giving me an error. I changed it to this but I'm not sure if it is correct. This doesn't give me an error.


$PP_DirectPayment_optional[0][$nextIndex] = "SH_Name";
$PP_DirectPayment_optional[1][$nextIndex] = "".((isset($_POST["shipping_firstname"]))?$_POST["shipping_firstname"]:"") ." ".((isset($_POST["shipping_lastname"]))?$_POST["shipping_lastname"]:"") ."";

Sign in to reply to this post

Jason ByrnesWebAssist

my apologies, there is a missing quote at the end:

$PP_DirectPayment_optional[0][$nextIndex] = "SH_Name";
$PP_DirectPayment_optional[1][$nextIndex] = "".((isset($_POST["shipping_firstname"]))?$_POST["shipping_firstname"]:"") ." ".((isset($_POST["shipping_lastname"]))?$_POST["shipping_lastname"]:"") ."";
Sign in to reply to this post

cal114936Beta Tester

Jason,

I changed the the following lines as you said above. Now, instead of only the first name being passed, Nothing is being passed to PayPal for the Shipping name.

$PP_DirectPayment_optional[0][$nextIndex] = "SH_Name";
$PP_DirectPayment_optional[1][$nextIndex] = "".((isset($_POST["shipping_firstname"]))?$_POST["shipping_firstname"]:"") ." ".((isset($_POST["shipping_lastname"]))?$_POST["shipping_lastname"]:"") ."";

The next four lines followed above...
(WA_getSavedFormValue('CheckoutWizard_Standout_Default','First_Name_2')) ."";
$nextIndex = count($PP_DirectPayment_optional[0]);
$PP_DirectPayment_optional[0][$nextIndex] = "SH_Street1";
$PP_DirectPayment_optional[1][$nextIndex] = "".

Also, why aren't the name and address etc. being inserted into database? The email is.
Thanks

Sign in to reply to this post

Ray BorduinWebAssist

That was code from the previous version of eCart. The latest version would be:

$PP_DirectPayment_optional[1][$nextIndex] = "".(WA_getSavedFormValue('CheckoutWizard_Standout_Default','First_Name_2')) ." ".(WA_getSavedFormValue('CheckoutWizard_Standout_Default','Last_Name_2')) ."";

Sign in to reply to this post
Did this help? Tips are appreciated...

cal114936Beta Tester

Thank you, Ray

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...