Closed ianstormtaylor closed 10 years ago
We're dumping all the information we have about a customer into identify
. There's a gender value that's required in some versions of Magento, optional in others. Unfortunately, due to the way Magento stores it's information, this was being send as a 1
or 2
. I've added an attribute named gender_label
to the array. If the gender of a customer is set, we'll now send it.
Can we change this so that we axe the 1/2
value entirely and end up with just gender: "Male"
?
Also question: how come the lastname
, middlename
, firstname
ones have no extra _
in there between the words? Can we fix that?
That's how Magento store's the information in it's database — where possible I just dumped an array of information from a Magneto object into a JSON object.
Normalized gender as just the label value.
Normalized first_name, last_name, and middle_name
Just a heads up, in that last screenshot it looks like gender is still "1"
instead of "Male"
Good catch ian, we were assigning the label, but doing it before we added the main customer data, so things were getting re-re-written to the value. That should be corrected now.
From a beta tester email:
Dunno if Magento exposes that, are we just pulling all properties of the user in the DB into
identify
calls already?