diff --git a/ecommerce_integrations/shopify/customer.py b/ecommerce_integrations/shopify/customer.py index 3a0ee952f..91f6bc223 100644 --- a/ecommerce_integrations/shopify/customer.py +++ b/ecommerce_integrations/shopify/customer.py @@ -25,6 +25,9 @@ def sync_customer(self, customer: dict[str, Any]) -> None: if len(customer_name.strip()) == 0: customer_name = customer.get("email") + if not customer_name: + customer_name = cstr(customer.get("id")) + customer_group = self.setting.customer_group super().sync_customer(customer_name, customer_group)