OrchardCore.Commerce icon indicating copy to clipboard operation
OrchardCore.Commerce copied to clipboard

Add FullName to the OrderPart (OCC-375)

Open infofromca opened this issue 7 months ago • 3 comments

Is your feature request related to a problem? Please describe

Currently FullName only on Address

Describe the solution you'd like

Add TextField property called FullName to the Order too

Jira issue

infofromca avatar Aug 03 '25 21:08 infofromca

There is no OrderPart.FullName, because there are two different names associated with the order: OrderPart.BillingAddress.Address.Name for billing and OrderPart.ShippingAddress.Address.Name for shipping/post. It's important to make the distinction because you'd use one or the other depending on the context.

sarahelsaig avatar Aug 04 '25 09:08 sarahelsaig

I can see there are many cases that we do not need Addresses, so it misses the Name info. In normal cases, we should find a way to clone them. IMO, it make sense Name with email and phone together.

infofromca avatar Aug 06 '25 10:08 infofromca

Even if you don't need to fill out the address, the billing name should still be specified and be accessible from OrderPart.BillingAddress.Address.Name. I am against cloning this information to another property in the order, because it will be harder to manage and keep in sync for the majority of uses when an address is needed.

You can also override the AddressFieldEditor-BillingAddress shape to only include Address.Name and leave the rest empty if you never need an address.

sarahelsaig avatar Aug 06 '25 10:08 sarahelsaig