mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
Fixed gender mapping from PS to CRM
This commit is contained in:
parent
4e7a34ceb9
commit
549d263f5c
@ -1164,7 +1164,7 @@ class RetailcrmOrderBuilder
|
||||
? $object->date_add : date('Y-m-d H:i:s'),
|
||||
'birthday' => RetailcrmTools::verifyDate($object->birthday, 'Y-m-d')
|
||||
? $object->birthday : '',
|
||||
'sex' => $object->id_gender == "0" ? "" : ($object->id_gender == "1" ? "male" : "female")
|
||||
'sex' => $object->id_gender == "1" ? "male" : ($object->id_gender == "2" ? "female" : "")
|
||||
),
|
||||
$address
|
||||
), function ($value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user