PDA

View Full Version : Checkout customers with middle initial


Greg B
12-13-07, 08:17 PM
When GCO customers with a middle initial on their account place an order, the middle initial is incorrectly placed in the last name field.

John H Smith

Currently:
First Name
John

Last Name
H Smith

Should be
First Name
John H

Last Name
Smith

Scott McCollough
12-13-07, 08:50 PM
Yes, I can see that. The module assumes that there is only a first and last. But if I make the change then it would break for people with two-word last names, like Lili von Shtupp. It should be "Lili" and "von Shtupp", but if we change the module to only use the last "word" as the last name, then she would lose her "von".

So it's not going to be perfect either way. And I know from experience that some systems butcher my last name and give me a middle name of "Mc" and it's really annoying.

Greg B
12-13-07, 09:01 PM
<?xml version="1.0" encoding="UTF-8"?>
<new-order-notification (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Tag_Reference.html#tag_new-order-notification) xmlns="http://checkout.google.com/schema/"
serial-number="85f54628-538a-44fc-8605-ae62364f6c71">
...
<buyer-billing-address (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Tag_Reference.html#tag_buy er-billing-address)>
<contact-name (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Tag_Reference.html#tag_con tact-name)>Bill Hu</contact-name>
...
<structured-name (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Structured_Names.html#tag_ structured-name)>
<first-name (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Structured_Names.html#tag_ first-name)>Bill</first-name>
<last-name (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Structured_Names.html#tag_ last-name)>Hu</last-name>
</structured-name>
</buyer-billing-address>
<buyer-shipping-address (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Tag_Reference.html#tag_buy er-shipping-address)>
<contact-name (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Tag_Reference.html#tag_con tact-name)>Will Shipp-Toomey</contact-name>
...
<structured-name (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Structured_Names.html#tag_ structured-name)>
<first-name (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Structured_Names.html#tag_ first-name)>Will</first-name>
<last-name (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Structured_Names.html#tag_ last-name)>Shipp-Toomey</last-name>
</structured-name>
</buyer-shipping-address>
...
</new-order-notification>


Is google returning the middle initial in the <last-name> tag?

It looks like in the docs they addressed this?

Google appends additional words and characters between a first and last name to the first name with the exception of common last name prefixes like "del" and "von". For example, if the contact name is John K. Smith, the <first-name> (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Structured_Names.html#tag_ first-name) value will be John K. and the <last-name> (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Structured_Names.html#tag_ last-name) value will be Smith. However, if the contact name is Benicio del Toro, the <first-name> (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Structured_Names.html#tag_ first-name) value will be Benicio and the <last-name> (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Structured_Names.html#tag_ last-name) value will be del Toro.

Greg B
01-31-08, 03:42 AM
In the google checkout integration center under the advanced options there is now a check box for returning the first and last names individually. Will this be implemented in a future release of the miva module?

Settings --> Integration --> Advanced
Provide the first name, last name and full name of the buyer and order recipient in separate fields in the new order notification.

Greg B
02-29-08, 05:07 PM
Has anyone heard if the upcoming update to the google checkout module will incorporate this?

Rick Wilson
02-29-08, 09:56 PM
Yes it handles this.