Problem: Error: 'Failed to Add customer for Magento order. Please enter value(s) for: First Name, Last Name'. The customer is a guest and is registered and there is no first name and last name on customer entity.
Solution: In customer flow mapping of first name and last name, multi-field mapping must be added.
{{#if lastname}} {{lastname}} {{else}} {{#if order.billing_address.lastname }} {{order.billing_address.lastna me}} {{else}} "ANY DEFAULT VALUE" {{/if}} {{/if}}
{{#if firstname}} {{firstname}} {{else}} {{#if order.billing_address.firstnam e}} {{order.billing_address.firstn ame}} {{else}} "ANY DEFAULT VALUE" {{/if}} {{/if}}
Comments
Please sign in to leave a comment.