[jira] Created: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
Create a party relationship between a new customer and the product store in the eCommerce application
-----------------------------------------------------------------------------------------------------

                 Key: OFBIZ-1955
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
             Project: OFBiz
          Issue Type: Improvement
          Components: ecommerce
    Affects Versions: SVN trunk, Release Branch 4.0
            Reporter: Patrick Antivackis
            Priority: Trivial


When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.

The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Antivackis updated OFBIZ-1955:
--------------------------------------

    Attachment: OFBIZ-1955.patch

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Priority: Trivial
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-1955:
--------------------------------------

    Assignee: Jacques Le Roux

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-1955.
----------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk

There was a problem with your patch : you tried to relate a store and a client. This is not possible as a store is not a party. So I modified your patch to relate the client to the sales representative of the store. In OFBiz OOTB, it's the admin with SALES_REP role (respectively partyIdTo and roleTypeIdTo in createPartyRelationship).

Your modified patch is in trunk revision: 695268  

Thanks for your work

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630915#action_12630915 ]

Jacques Le Roux commented on OFBIZ-1955:
----------------------------------------

In r695281 I commited a fix  in the relationship creation committed in r695268 : should be DISTRIBUTION_CHANNEL and not CUSTOMER_REL
Note that we could also reverse the relationship using CUSTOMER_REL partyRelationshipTypeId but in this case we will have to use a hack (user system) for the creation permission and to revert this hack after its use in the CreatePartyRelationship service

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631127#action_12631127 ]

Patrick Antivackis commented on OFBIZ-1955:
-------------------------------------------

Indeed there is an error in my patch,it should be :
<set field="partyRelationshipCtx.partyIdTo" from-field="productStore.payToPartyId"/>
instead of
<set field="partyRelationshipCtx.partyIdTo" from-field="productStore.productStoreId"/>

The aim of this patch is to know to which productStore Company  a customer create an account in.

Today, the only information available after new account are :
PartyProfile set to CUSTOMER for the new account partyId
PartyDatasource set to ECOMMERCE_SITE for the partyId

May be my patch is too light, and in fact a relationship should be created between the account and the productStore. It's of course open to discussion.




> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631285#action_12631285 ]

Jacopo Cappellato commented on OFBIZ-1955:
------------------------------------------

Patrick,

setting the payToPartyId is a much better solution. The idea is to set "customer" relationship from the client and the company that 'owns' the store.
I am not sure if the CUSTOMER_REL type is the best one for this relationship.




> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631307#action_12631307 ]

Patrick Antivackis commented on OFBIZ-1955:
-------------------------------------------

Jacopo,
Thanks for your input.
For the partyRelationshipTypeId, i took this one as my idea was to log the fact that the new account is a customer of the company owning the store. This relationshiptype needs also a CONSUMER role for the roleTypeIdFrom field, which is the case.

In your idea, what partyRelationshipTypeId would be better for this relationship ?



> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631326#action_12631326 ]

Bilgin Ibryam commented on OFBIZ-1955:
--------------------------------------

Patrick,

if you want to associate a customer with the store, why not use ProductStoreRole entity? You can assign the party with CUSTOMER role to the store. This way you can also use  ProductStore.requireCustomerRole restriction for example...

Bilgin

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631402#action_12631402 ]

David E. Jones commented on OFBIZ-1955:
---------------------------------------

I've just written a bunch on this topic and Jira was kind enough to throw it away for me (having a form appear like this at the bottom when you click on a button is a BAD BAD design because if the form submit HTTP request fails all of what you wrote is magically gone...).

Getting to the point... what is the point of this patch? Patrick, you wrote "The aim of this patch is to know to which productStore Company a customer create an account in," but that's the only real clue we have. What is the business need behind this? What will this information be used for, or what is the problem that this information is meant to help solve?

Seriously, without that information from Patrick we're all just guessing and poking around in the dark.

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631410#action_12631410 ]

Raj Saini commented on OFBIZ-1955:
----------------------------------

This could be very useful in multi store environment where each store is owned by a different vendor. I have similar requirement to create a mall kind of e-commerce site where stores are owned by different vendors. With a customer and product store relationship in place, it would be possible to create a view where a store owner sees only customer of her store.


> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631413#action_12631413 ]

David E. Jones commented on OFBIZ-1955:
---------------------------------------

Raj: are you talking about a multi-tenant environment? If so then there is quite a lot more beyond this that needs to be considered...

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631417#action_12631417 ]

Raj Saini commented on OFBIZ-1955:
----------------------------------

David, yes I agree there is quite a lot more beyond this. Catalog, categories, products already support this using Party Role association. I did this for a client who just wanted a separate view of catalogs, products and categories.  I think having this feature will be another addition to what is already there for a multi-tenant environment.

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631418#action_12631418 ]

David E. Jones commented on OFBIZ-1955:
---------------------------------------

Even that is just the tip of the iceberg, there are hundreds of entities that have to be isolated between tenants. For a truly isolated multi-tenant environment you need to either have completely separate databases per tenant, or add a column to every entity to use as a tenantId (hint: this is really easy to do with the entity engine with a small code change...).

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631420#action_12631420 ]

David E. Jones commented on OFBIZ-1955:
---------------------------------------

On a side note: what Raj brought up leads to exactly what I'm getting at here. Unless you know the business need and where it fits into what the business (or end-user more generally) wants to do, then the discussion is pointless because we don't have enough information about the requirement to determine if one design or another is better for it.



> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631507#action_12631507 ]

Patrick Antivackis commented on OFBIZ-1955:
-------------------------------------------

In fact the business goal behind this is the following:
Ofbiz is used by one corporation that have lot of products that are sold in different productStores each hold by a company belonging to the corporation. Even, if a customer login/password is shared by all the productStores, it's important to keep the information to which company the customer first created it's account (for customer relationship purposes and incentive on products sold in other stores).

Bilgin, Raj and David inputs make me think that is problem is may be more focus on my needs than everybody's need, and should either be dropped or transform in a more wider approach like a multi-tenant environment.


> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631865#action_12631865 ]

David E. Jones commented on OFBIZ-1955:
---------------------------------------

Patrick: that sounds like a requirement that is different from a multi-tenant environment. In a multi-tenant environment they are basically using the same system, but with totally separate data sets. You're talking about divisions of a single organization that want to share data.

What you're describing does lead to associating a customer with either a store or the internal organization running the store. To help clear up the design further the answer to another of the questions I asked would help: how will the data be used? In other words, what will be evaluated or when doing evaluations what data and data relationships need to be considered?

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631879#action_12631879 ]

Patrick Antivackis commented on OFBIZ-1955:
-------------------------------------------

In the requirement, it's important to keep the store/company owning the store (here one company has one store) that bring the customer to create an account because :
- marketing campaign will first highlight the product of the initial store/company
- a percent of the revenue of all the products sold by other stores/companies will be inputed in the revenue of the initial store

So the important data to be evaluated is "which is the store/company that bring the customer to create an account."


 

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Reopened: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reopened OFBIZ-1955:
------------------------------------


Sorry I let this issue close and was not available these last 3 days, It's reopened now

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633878#action_12633878 ]

Jacques Le Roux commented on OFBIZ-1955:
----------------------------------------

I will second Bilgin suggestion, why not use the ProductStoreRole with a CUSTOMER role for the customer ?

> Create a party relationship between a new customer and the product store in the eCommerce application
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1955
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1955
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Patrick Antivackis
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a CUSTOMER profile is created to this new user, but no relationship is made between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the data store (partyIdTo) with profile _NA_ (roleTypeIdTo)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

12