Greg,
Use the following entities:

PARTY_CONTACT_MECH - This entity associates the address to a customer.

PARTY_CONTACT_MECH_PURPOSE - This entity associates the address to a
customer and defines its purpose.

Reference entity CONTACT_MECH_PURPOSE_TYPE for the list of available
purposes.

Regards
Len

-----Original Message-----
From: greg jocher [mailto:g...@jocher.ch] 
Sent: Friday, July 12, 2013 5:29 AM
To: user@ofbiz.apache.org
Subject: Ecommerce ship to a party or partygroup address

Hi All

We are working on a custom checkout implementation and are stuck at the 
address setup.

Our customers use many different adresses:
- Home address
- Work address
- Thirdparty address
- Thirdparty work address

Each customer has a default (general or shipping/billing) address.

We could not find an easy way to add and link these addresses in ofbiz 
without loosing information and duplicating content.


Example with a thirdparty work address:

We have to ship the order of customer "Marge Simpson" to a thirdparty 
work address:

Company FOO  -> PartyGroup (groupName)
Homer Jay Simpson -> Person/Party (firstName middleName lastName)
Workstreet 123 -> PostalAddress (address1)
11111 Biztown  -> PostalAddress (postalCode city)

But we were unable to link Homer's CompanyFoo's PostalAddress X with the 
customer (Marge Simpson)
We can link:
- Homer with Marge
- Company with Marge
- PostalAddress with Marge
But there is now relation between all 3.

The ofbiz way we found:
Company FOO  -> PostalAddress (toName)
Homer Jay Simpson -> PostalAddress/Party (attentionName)
Workstreet 123 -> PostalAddress (address1)
11111 Biztown  -> PostalAddress (postalCode city)

This way we loose the following information:
- address = company address
- firstname
- lastname
- middleName
and we duplicate content.

So, we have two questions:
Is there a way to link such (standard) addresses?
Can we flag an address as default (shipping) address?

Best regards
Greg





Reply via email to