mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-03 11:43:16 +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'),
|
? $object->date_add : date('Y-m-d H:i:s'),
|
||||||
'birthday' => RetailcrmTools::verifyDate($object->birthday, 'Y-m-d')
|
'birthday' => RetailcrmTools::verifyDate($object->birthday, 'Y-m-d')
|
||||||
? $object->birthday : '',
|
? $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
|
$address
|
||||||
), function ($value) {
|
), function ($value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user