Re: Generic Roles in Shopping Cart

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

Re: Generic Roles in Shopping Cart

cjhowe
 I'm needing to restrict a custom roleTypeId to 1 per shopping cart, currently the only way to add a custom roleTypeId is through the  addAdditionalRole, which will accept many parties per roleTypeId. I can accomplish limiting the roleTypeId to one party only by removing all parties from the addAdditionalRole.roleTypeId before adding the limiting role, but it's not fail safe.

----- Original Message ----
From: Jim Barrows <[hidden email]>
To: [hidden email]
Sent: Friday, December 14, 2007 11:35:31 AM
Subject: Re: Generic Roles in Shopping Cart


What problem are you trying to solve?

On Dec 14, 2007 10:19 AM, Chris Howe <[hidden email]> wrote:
> I'm needing to restrict a custom roleTypeId to 1 per shopping cart
 and I'm not finding a way to do that. Would there be any objection to
 changing the way the roles are handled in the shopping cart?  I would like
 to change all of the roles that should be restricted to 1 per shopping
 cart from specified variables to a HashMap(String roletypeId, String
 partyId) in contrast to the additionalPartyRole of HashMap(String
 roleTypeId, List(String partyId)).
>
>
>



--
James A Barrows



Reply | Threaded
Open this post in threaded view
|

Re: Generic Roles in Shopping Cart

Jim Barrows
I'm wondering why you want to do that?  Are you trying to tie a
shopping cart to an individual user?

On Dec 14, 2007 10:41 AM, Chris Howe <[hidden email]> wrote:

>  I'm needing to restrict a custom roleTypeId to 1 per shopping cart, currently the only way to add a custom roleTypeId is through the  addAdditionalRole, which will accept many parties per roleTypeId. I can accomplish limiting the roleTypeId to one party only by removing all parties from the addAdditionalRole.roleTypeId before adding the limiting role, but it's not fail safe.
>
> ----- Original Message ----
> From: Jim Barrows <[hidden email]>
> To: [hidden email]
> Sent: Friday, December 14, 2007 11:35:31 AM
> Subject: Re: Generic Roles in Shopping Cart
>
>
> What problem are you trying to solve?
>
> On Dec 14, 2007 10:19 AM, Chris Howe <[hidden email]> wrote:
> > I'm needing to restrict a custom roleTypeId to 1 per shopping cart
>  and I'm not finding a way to do that. Would there be any objection to
>  changing the way the roles are handled in the shopping cart?  I would like
>  to change all of the roles that should be restricted to 1 per shopping
>  cart from specified variables to a HashMap(String roletypeId, String
>  partyId) in contrast to the additionalPartyRole of HashMap(String
>  roleTypeId, List(String partyId)).
> >
> >
> >
>
>
>
> --
> James A Barrows
>
>
>
>



--
James A Barrows