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 |
I think this helps you : party_profile_default
With regards S K Pradeep Kumar With regards, S K Pradeep Kumar, 9035009495 On Fri, Jul 12, 2013 at 2:59 PM, greg jocher <[hidden email]> wrote: > 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 > > > > > |
In reply to this post by greg jocher-3
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:[hidden email]] Sent: Friday, July 12, 2013 5:29 AM To: [hidden email] 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 |
Free forum by Nabble | Edit this page |