Mort-lemur Posted May 8, 2018 Share Posted May 8, 2018 I have noticed recently that an increasing number of customers are not having their name recorded when either logging in with paypal or checking out using paypal express. The name is captured in the Shipping Address and Billing Address but not under the Customer Address. Has something changed recently ? Im using 2.3.4 with the latest version of the paypal app and paypal express. attached is a screenshot showing the blanks from today and part of yesterday. Any ideas? Many thanks Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members. Link to comment Share on other sites More sharing options...
ruden Posted May 10, 2018 Share Posted May 10, 2018 It seems that given_name and family_name is no longer working My fix In includes/modules/content/login/cm_paypal_login.php After $force_login = false; Add // fixme if (!isset($response['given_name']) && !isset($response['family_name'])) { //code to extract firstname and lastname from name $name = explode(' ', $response['name']); $response['given_name'] = tep_db_prepare_input($name[0]); $response['family_name'] = tep_db_prepare_input((isset($name[count($name)-1]) ? $name[count($name)-1] : '')); } Before tep_db_perform(TABLE_CUSTOMERS, $sql_data_array); Add // fixme if ($this->hasAttribute('date_of_birth') && isset($response['birthday']) && !empty($response['birthday'])) { $sql_data_array['customers_dob'] = tep_db_prepare_input($response['birthday']); } Link to comment Share on other sites More sharing options...
Mort-lemur Posted May 11, 2018 Author Share Posted May 11, 2018 @ruden Thank you - I have just made the changes - will see if it solves the problem over the next few days. Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members. Link to comment Share on other sites More sharing options...
Mort-lemur Posted May 23, 2018 Author Share Posted May 23, 2018 @ruden Thank you, a couple of weeks on and your solution solved the problem Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members. Link to comment Share on other sites More sharing options...
Mort-lemur Posted May 23, 2018 Author Share Posted May 23, 2018 @wHiTeHaT No I dont seem to have problems like you mention, but my customers seem to all have quite short names... Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members. Link to comment Share on other sites More sharing options...
Roaddoctor Posted May 25, 2018 Share Posted May 25, 2018 just applied this fix - I've been seeing the same lately. Hope it works -Dave Link to comment Share on other sites More sharing options...
greasemonkey Posted June 1, 2018 Share Posted June 1, 2018 Seems to be working for me as well.... Link to comment Share on other sites More sharing options...
diabloiptv Posted June 2, 2018 Share Posted June 2, 2018 Hello for me his walk but he still misses sex and date of birth. Link to comment Share on other sites More sharing options...
diabloiptv Posted June 2, 2018 Share Posted June 2, 2018 41 minutes ago, diabloiptv said: Hello for me his walk but he still misses sex and date of birth. Hello for the date of birth is to regulate but lacks the sex of the person Link to comment Share on other sites More sharing options...
DAVID3733 Posted July 31, 2018 Share Posted July 31, 2018 On 5/10/2018 at 5:27 AM, ruden said: It seems that given_name and family_name is no longer working My fix In includes/modules/content/login/cm_paypal_login.php After $force_login = false; Add // fixme if (!isset($response['given_name']) && !isset($response['family_name'])) { //code to extract firstname and lastname from name $name = explode(' ', $response['name']); $response['given_name'] = tep_db_prepare_input($name[0]); $response['family_name'] = tep_db_prepare_input((isset($name[count($name)-1]) ? $name[count($name)-1] : '')); } Before tep_db_perform(TABLE_CUSTOMERS, $sql_data_array); Add // fixme if ($this->hasAttribute('date_of_birth') && isset($response['birthday']) && !empty($response['birthday'])) { $sql_data_array['customers_dob'] = tep_db_prepare_input($response['birthday']); } Worked for me only difference was I had tep_db_perform('customers', $sql_data_array); instead of tep_db_perform(TABLE_CUSTOMERS, $sql_data_array); thank you David Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.