Update Customer Info

Modify WooCommerce customer profile and address information.

Overview

The Update Customer Info action modifies a WooCommerce customer’s profile, including billing and shipping addresses. This is useful for syncing customer data from external systems.

Configuration

Required Fields

FieldTypeDescription
CustomerintegerCustomer user ID or email

Optional Fields

Billing Address

FieldTypeDescription
Billing First NamestringFirst name
Billing Last NamestringLast name
Billing CompanystringCompany name
Billing Address 1stringStreet address
Billing Address 2stringApartment, suite, etc.
Billing CitystringCity
Billing StatestringState/Province code
Billing PostcodestringPostal code
Billing CountrystringCountry code
Billing EmailstringEmail address
Billing PhonestringPhone number

Shipping Address

FieldTypeDescription
Shipping First NamestringFirst name
Shipping Last NamestringLast name
Shipping CompanystringCompany name
Shipping Address 1stringStreet address
Shipping Address 2stringApartment, suite, etc.
Shipping CitystringCity
Shipping StatestringState/Province code
Shipping PostcodestringPostal code
Shipping CountrystringCountry code

Example Configurations

Sync from CRM

Customer: {{Trigger.customer_email}}
Billing First Name: {{Trigger.crm_first_name}}
Billing Last Name: {{Trigger.crm_last_name}}
Billing Phone: {{Trigger.crm_phone}}
Billing Company: {{Trigger.crm_company}}

Update from Form

Customer: {{Trigger.user_id}}
Billing Address 1: {{Trigger.fields.address}}
Billing City: {{Trigger.fields.city}}
Billing State: {{Trigger.fields.state}}
Billing Postcode: {{Trigger.fields.zip}}

Copy Billing to Shipping

Customer: {{Trigger.customer_id}}
Shipping First Name: {{Trigger.billing.first_name}}
Shipping Last Name: {{Trigger.billing.last_name}}
Shipping Address 1: {{Trigger.billing.address_1}}
Shipping City: {{Trigger.billing.city}}
Shipping State: {{Trigger.billing.state}}
Shipping Postcode: {{Trigger.billing.postcode}}
Shipping Country: {{Trigger.billing.country}}

Output Data

VariableTypeDescription
{{Action.customer_id}}integerCustomer ID
{{Action.updated_fields}}arrayFields that were updated

Best Practices

  • Validate addresses before updating
  • Use proper country/state codes
  • Keep addresses in sync with orders
  • Log changes for customer service