Users - Re: Shopping Cart Persistence?

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

Users - Re: Shopping Cart Persistence?

jitender.garg
Hi All,

Can the shopping cart be made persistent for an anonymous journey by some configurable parameter. Currently OOTB, the shopping cart is a session based object so I would lose my shopping cart once I lose the session.

regards,

Jitender
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Re: Shopping Cart Persistence?

Andrew Zeneski
There is code in place currently which will persist the shopping cart  
into a shopping list each time it modified. There is a flag I believe  
on the product store which enables/disables this behavior. The cart  
is reloaded each time the user returns based on what is currently in  
that special purpose shopping list.

Andy

On Dec 7, 2005, at 8:39 AM, <[hidden email]>  
<[hidden email]> wrote:

> Hi All,
>
> Can the shopping cart be made persistent for an anonymous journey  
> by some configurable parameter. Currently OOTB, the shopping cart  
> is a session based object so I would lose my shopping cart once I  
> lose the session.
>
> regards,
>
> Jitender
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

RE: Users - Re: Shopping Cart Persistence?

jitender.garg
In reply to this post by jitender.garg
Thanks Andy I will try that out but does it work only for the logged in user or for an anonymous user as well.
I thought shopping lists only worked  with logged in users.

regards,

Jitender

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of A. Zeneski
Sent: 07 December 2005 16:21
To: OFBiz Users / Usage Discussion
Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?


There is code in place currently which will persist the shopping cart  
into a shopping list each time it modified. There is a flag I believe  
on the product store which enables/disables this behavior. The cart  
is reloaded each time the user returns based on what is currently in  
that special purpose shopping list.

Andy

On Dec 7, 2005, at 8:39 AM, <[hidden email]>  
<[hidden email]> wrote:

> Hi All,
>
> Can the shopping cart be made persistent for an anonymous journey  
> by some configurable parameter. Currently OOTB, the shopping cart  
> is a session based object so I would lose my shopping cart once I  
> lose the session.
>
> regards,
>
> Jitender
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

RE: Users - Re: Shopping Cart Persistence?

jitender.garg
In reply to this post by jitender.garg
Sorry Andy ignore that question understood now.

regards,

Jitender

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of A. Zeneski
Sent: 07 December 2005 16:21
To: OFBiz Users / Usage Discussion
Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?


There is code in place currently which will persist the shopping cart  
into a shopping list each time it modified. There is a flag I believe  
on the product store which enables/disables this behavior. The cart  
is reloaded each time the user returns based on what is currently in  
that special purpose shopping list.

Andy

On Dec 7, 2005, at 8:39 AM, <[hidden email]>  
<[hidden email]> wrote:

> Hi All,
>
> Can the shopping cart be made persistent for an anonymous journey  
> by some configurable parameter. Currently OOTB, the shopping cart  
> is a session based object so I would lose my shopping cart once I  
> lose the session.
>
> regards,
>
> Jitender
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Re: Shopping Cart Persistence?

Andrew Zeneski
In reply to this post by jitender.garg
Actually I think you are right. It does only work for a logged in  
user; since it needs to know who the cart is associated with.  
Anonymous shoppers will have their cart in memory until the session  
goes away. At that point, if they return there is no way of knowing  
who they are.

Andy

On Dec 7, 2005, at 11:43 AM, <[hidden email]>  
<[hidden email]> wrote:

> Thanks Andy I will try that out but does it work only for the  
> logged in user or for an anonymous user as well.
> I thought shopping lists only worked  with logged in users.
>
> regards,
>
> Jitender
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]]On Behalf Of A. Zeneski
> Sent: 07 December 2005 16:21
> To: OFBiz Users / Usage Discussion
> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>
>
> There is code in place currently which will persist the shopping cart
> into a shopping list each time it modified. There is a flag I believe
> on the product store which enables/disables this behavior. The cart
> is reloaded each time the user returns based on what is currently in
> that special purpose shopping list.
>
> Andy
>
> On Dec 7, 2005, at 8:39 AM, <[hidden email]>
> <[hidden email]> wrote:
>
>> Hi All,
>>
>> Can the shopping cart be made persistent for an anonymous journey
>> by some configurable parameter. Currently OOTB, the shopping cart
>> is a session based object so I would lose my shopping cart once I
>> lose the session.
>>
>> regards,
>>
>> Jitender
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Re: Shopping Cart Persistence?

David E. Jones

There is actually a possible way of doing this based on the fairly  
new Visitor entity. This was actually one of the intents of the  
Visitor entity initially, though the need evaporated so it was never  
developed.

-David


On Dec 7, 2005, at 10:20 AM, A. Zeneski wrote:

> Actually I think you are right. It does only work for a logged in  
> user; since it needs to know who the cart is associated with.  
> Anonymous shoppers will have their cart in memory until the session  
> goes away. At that point, if they return there is no way of knowing  
> who they are.
>
> Andy
>
> On Dec 7, 2005, at 11:43 AM, <[hidden email]>  
> <[hidden email]> wrote:
>
>> Thanks Andy I will try that out but does it work only for the  
>> logged in user or for an anonymous user as well.
>> I thought shopping lists only worked  with logged in users.
>>
>> regards,
>>
>> Jitender
>>
>> -----Original Message-----
>> From: [hidden email]
>> [mailto:[hidden email]]On Behalf Of A. Zeneski
>> Sent: 07 December 2005 16:21
>> To: OFBiz Users / Usage Discussion
>> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>>
>>
>> There is code in place currently which will persist the shopping cart
>> into a shopping list each time it modified. There is a flag I believe
>> on the product store which enables/disables this behavior. The cart
>> is reloaded each time the user returns based on what is currently in
>> that special purpose shopping list.
>>
>> Andy
>>
>> On Dec 7, 2005, at 8:39 AM, <[hidden email]>
>> <[hidden email]> wrote:
>>
>>> Hi All,
>>>
>>> Can the shopping cart be made persistent for an anonymous journey
>>> by some configurable parameter. Currently OOTB, the shopping cart
>>> is a session based object so I would lose my shopping cart once I
>>> lose the session.
>>>
>>> regards,
>>>
>>> Jitender
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Users - Re: Shopping Cart Persistence?

jitender.garg
In reply to this post by jitender.garg
David,

Could  you suggest what changes would be required at a high level and is it a simple change or a complex one.

regards,

Jitender

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of David E. Jones
Sent: 07 December 2005 20:24
To: OFBiz Users / Usage Discussion
Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?



There is actually a possible way of doing this based on the fairly  
new Visitor entity. This was actually one of the intents of the  
Visitor entity initially, though the need evaporated so it was never  
developed.

-David


On Dec 7, 2005, at 10:20 AM, A. Zeneski wrote:

> Actually I think you are right. It does only work for a logged in  
> user; since it needs to know who the cart is associated with.  
> Anonymous shoppers will have their cart in memory until the session  
> goes away. At that point, if they return there is no way of knowing  
> who they are.
>
> Andy
>
> On Dec 7, 2005, at 11:43 AM, <[hidden email]>  
> <[hidden email]> wrote:
>
>> Thanks Andy I will try that out but does it work only for the  
>> logged in user or for an anonymous user as well.
>> I thought shopping lists only worked  with logged in users.
>>
>> regards,
>>
>> Jitender
>>
>> -----Original Message-----
>> From: [hidden email]
>> [mailto:[hidden email]]On Behalf Of A. Zeneski
>> Sent: 07 December 2005 16:21
>> To: OFBiz Users / Usage Discussion
>> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>>
>>
>> There is code in place currently which will persist the shopping cart
>> into a shopping list each time it modified. There is a flag I believe
>> on the product store which enables/disables this behavior. The cart
>> is reloaded each time the user returns based on what is currently in
>> that special purpose shopping list.
>>
>> Andy
>>
>> On Dec 7, 2005, at 8:39 AM, <[hidden email]>
>> <[hidden email]> wrote:
>>
>>> Hi All,
>>>
>>> Can the shopping cart be made persistent for an anonymous journey
>>> by some configurable parameter. Currently OOTB, the shopping cart
>>> is a session based object so I would lose my shopping cart once I
>>> lose the session.
>>>
>>> regards,
>>>
>>> Jitender
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Re: Shopping Cart Persistence?

David E. Jones

Jitender,

Being simple or complex depends on who is doing it and how familiar  
they are with this particular part of the code. The actual work  
shouldn't take more than a couple of hours, though it may require  
some changes to a few methods that are involved with this to make  
sure the Visitor information is available where it is needed. The  
basic idea is simple: if not user is logged in still update the auto-
save shopping list, but use the visitorId instead of the partyId.

-David


On Dec 7, 2005, at 4:02 PM, <[hidden email]> wrote:

> David,
>
> Could  you suggest what changes would be required at a high level  
> and is it a simple change or a complex one.
>
> regards,
>
> Jitender
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]]On Behalf Of David E. Jones
> Sent: 07 December 2005 20:24
> To: OFBiz Users / Usage Discussion
> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>
>
>
> There is actually a possible way of doing this based on the fairly
> new Visitor entity. This was actually one of the intents of the
> Visitor entity initially, though the need evaporated so it was never
> developed.
>
> -David
>
>
> On Dec 7, 2005, at 10:20 AM, A. Zeneski wrote:
>
>> Actually I think you are right. It does only work for a logged in
>> user; since it needs to know who the cart is associated with.
>> Anonymous shoppers will have their cart in memory until the session
>> goes away. At that point, if they return there is no way of knowing
>> who they are.
>>
>> Andy
>>
>> On Dec 7, 2005, at 11:43 AM, <[hidden email]>
>> <[hidden email]> wrote:
>>
>>> Thanks Andy I will try that out but does it work only for the
>>> logged in user or for an anonymous user as well.
>>> I thought shopping lists only worked  with logged in users.
>>>
>>> regards,
>>>
>>> Jitender
>>>
>>> -----Original Message-----
>>> From: [hidden email]
>>> [mailto:[hidden email]]On Behalf Of A. Zeneski
>>> Sent: 07 December 2005 16:21
>>> To: OFBiz Users / Usage Discussion
>>> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>>>
>>>
>>> There is code in place currently which will persist the shopping  
>>> cart
>>> into a shopping list each time it modified. There is a flag I  
>>> believe
>>> on the product store which enables/disables this behavior. The cart
>>> is reloaded each time the user returns based on what is currently in
>>> that special purpose shopping list.
>>>
>>> Andy
>>>
>>> On Dec 7, 2005, at 8:39 AM, <[hidden email]>
>>> <[hidden email]> wrote:
>>>
>>>> Hi All,
>>>>
>>>> Can the shopping cart be made persistent for an anonymous journey
>>>> by some configurable parameter. Currently OOTB, the shopping cart
>>>> is a session based object so I would lose my shopping cart once I
>>>> lose the session.
>>>>
>>>> regards,
>>>>
>>>> Jitender
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

RE: Users - Re: Shopping Cart Persistence?

jitender.garg
In reply to this post by jitender.garg
Thanks David.

One more thing I have observed it doesn't fully support persistence of configurable items. Well it does persist from the cart to the list the main config product (forgets the configuration) but on retrieval from shopping list it doesn't  retrieves the configurable product back into cart. Is it fixed in some later version or this is the current state of the functionality or is it by design?

regrads,

Jitender


-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of David E. Jones
Sent: 08 December 2005 00:19
To: OFBiz Users / Usage Discussion
Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?



Jitender,

Being simple or complex depends on who is doing it and how familiar  
they are with this particular part of the code. The actual work  
shouldn't take more than a couple of hours, though it may require  
some changes to a few methods that are involved with this to make  
sure the Visitor information is available where it is needed. The  
basic idea is simple: if not user is logged in still update the auto-
save shopping list, but use the visitorId instead of the partyId.

-David


On Dec 7, 2005, at 4:02 PM, <[hidden email]> wrote:

> David,
>
> Could  you suggest what changes would be required at a high level  
> and is it a simple change or a complex one.
>
> regards,
>
> Jitender
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]]On Behalf Of David E. Jones
> Sent: 07 December 2005 20:24
> To: OFBiz Users / Usage Discussion
> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>
>
>
> There is actually a possible way of doing this based on the fairly
> new Visitor entity. This was actually one of the intents of the
> Visitor entity initially, though the need evaporated so it was never
> developed.
>
> -David
>
>
> On Dec 7, 2005, at 10:20 AM, A. Zeneski wrote:
>
>> Actually I think you are right. It does only work for a logged in
>> user; since it needs to know who the cart is associated with.
>> Anonymous shoppers will have their cart in memory until the session
>> goes away. At that point, if they return there is no way of knowing
>> who they are.
>>
>> Andy
>>
>> On Dec 7, 2005, at 11:43 AM, <[hidden email]>
>> <[hidden email]> wrote:
>>
>>> Thanks Andy I will try that out but does it work only for the
>>> logged in user or for an anonymous user as well.
>>> I thought shopping lists only worked  with logged in users.
>>>
>>> regards,
>>>
>>> Jitender
>>>
>>> -----Original Message-----
>>> From: [hidden email]
>>> [mailto:[hidden email]]On Behalf Of A. Zeneski
>>> Sent: 07 December 2005 16:21
>>> To: OFBiz Users / Usage Discussion
>>> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>>>
>>>
>>> There is code in place currently which will persist the shopping  
>>> cart
>>> into a shopping list each time it modified. There is a flag I  
>>> believe
>>> on the product store which enables/disables this behavior. The cart
>>> is reloaded each time the user returns based on what is currently in
>>> that special purpose shopping list.
>>>
>>> Andy
>>>
>>> On Dec 7, 2005, at 8:39 AM, <[hidden email]>
>>> <[hidden email]> wrote:
>>>
>>>> Hi All,
>>>>
>>>> Can the shopping cart be made persistent for an anonymous journey
>>>> by some configurable parameter. Currently OOTB, the shopping cart
>>>> is a session based object so I would lose my shopping cart once I
>>>> lose the session.
>>>>
>>>> regards,
>>>>
>>>> Jitender
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Re: Shopping Cart Persistence?

David E. Jones

Jitender,

I don't think anything has been implemented for this, though Jacopo  
would know better as he wrote pretty much all of the configurable  
product stuff. There is nothing that would implicitly persist  
information about special types of products like configurable  
products, so if persistence of additional information about them is  
desired that has to be explicitly developed, and to my knowledge that  
simply hasn't been done.

-David


On Dec 8, 2005, at 3:46 AM, <[hidden email]>  
<[hidden email]> wrote:

> Thanks David.
>
> One more thing I have observed it doesn't fully support persistence  
> of configurable items. Well it does persist from the cart to the  
> list the main config product (forgets the configuration) but on  
> retrieval from shopping list it doesn't  retrieves the configurable  
> product back into cart. Is it fixed in some later version or this  
> is the current state of the functionality or is it by design?
>
> regrads,
>
> Jitender
>
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]]On Behalf Of David E. Jones
> Sent: 08 December 2005 00:19
> To: OFBiz Users / Usage Discussion
> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>
>
>
> Jitender,
>
> Being simple or complex depends on who is doing it and how familiar
> they are with this particular part of the code. The actual work
> shouldn't take more than a couple of hours, though it may require
> some changes to a few methods that are involved with this to make
> sure the Visitor information is available where it is needed. The
> basic idea is simple: if not user is logged in still update the auto-
> save shopping list, but use the visitorId instead of the partyId.
>
> -David
>
>
> On Dec 7, 2005, at 4:02 PM, <[hidden email]> wrote:
>
>> David,
>>
>> Could  you suggest what changes would be required at a high level
>> and is it a simple change or a complex one.
>>
>> regards,
>>
>> Jitender
>>
>> -----Original Message-----
>> From: [hidden email]
>> [mailto:[hidden email]]On Behalf Of David E. Jones
>> Sent: 07 December 2005 20:24
>> To: OFBiz Users / Usage Discussion
>> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>>
>>
>>
>> There is actually a possible way of doing this based on the fairly
>> new Visitor entity. This was actually one of the intents of the
>> Visitor entity initially, though the need evaporated so it was never
>> developed.
>>
>> -David
>>
>>
>> On Dec 7, 2005, at 10:20 AM, A. Zeneski wrote:
>>
>>> Actually I think you are right. It does only work for a logged in
>>> user; since it needs to know who the cart is associated with.
>>> Anonymous shoppers will have their cart in memory until the session
>>> goes away. At that point, if they return there is no way of knowing
>>> who they are.
>>>
>>> Andy
>>>
>>> On Dec 7, 2005, at 11:43 AM, <[hidden email]>
>>> <[hidden email]> wrote:
>>>
>>>> Thanks Andy I will try that out but does it work only for the
>>>> logged in user or for an anonymous user as well.
>>>> I thought shopping lists only worked  with logged in users.
>>>>
>>>> regards,
>>>>
>>>> Jitender
>>>>
>>>> -----Original Message-----
>>>> From: [hidden email]
>>>> [mailto:[hidden email]]On Behalf Of A. Zeneski
>>>> Sent: 07 December 2005 16:21
>>>> To: OFBiz Users / Usage Discussion
>>>> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>>>>
>>>>
>>>> There is code in place currently which will persist the shopping
>>>> cart
>>>> into a shopping list each time it modified. There is a flag I
>>>> believe
>>>> on the product store which enables/disables this behavior. The cart
>>>> is reloaded each time the user returns based on what is  
>>>> currently in
>>>> that special purpose shopping list.
>>>>
>>>> Andy
>>>>
>>>> On Dec 7, 2005, at 8:39 AM, <[hidden email]>
>>>> <[hidden email]> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> Can the shopping cart be made persistent for an anonymous journey
>>>>> by some configurable parameter. Currently OOTB, the shopping cart
>>>>> is a session based object so I would lose my shopping cart once I
>>>>> lose the session.
>>>>>
>>>>> regards,
>>>>>
>>>>> Jitender
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> [hidden email]
>>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Users - Re: Shopping Cart Persistence?

Jacopo Cappellato
Jitender,

David is right, this is not currently implemented.
The main problem is that the code to save a configuration is not
currently implemented at all (even if the data model is already in
place): so now a configuration can only live in memory/cart (wrapped in
a ProductConfigWrapper object) and when an order is created it is
transformed in a production run.
By the way, the original plan was to persist configurations (plus some
nice stuff) and probably in the future we will complete this effort: if
you are interested in working over this I'll be happy to give you some help.

Regards,

Jacopo


David E. Jones wrote:

>
> Jitender,
>
> I don't think anything has been implemented for this, though Jacopo  
> would know better as he wrote pretty much all of the configurable  
> product stuff. There is nothing that would implicitly persist  
> information about special types of products like configurable  products,
> so if persistence of additional information about them is  desired that
> has to be explicitly developed, and to my knowledge that  simply hasn't
> been done.
>
> -David
>
>
> On Dec 8, 2005, at 3:46 AM, <[hidden email]>  
> <[hidden email]> wrote:
>
>> Thanks David.
>>
>> One more thing I have observed it doesn't fully support persistence  
>> of configurable items. Well it does persist from the cart to the  list
>> the main config product (forgets the configuration) but on  retrieval
>> from shopping list it doesn't  retrieves the configurable  product
>> back into cart. Is it fixed in some later version or this  is the
>> current state of the functionality or is it by design?
>>
>> regrads,
>>
>> Jitender
>>
>>
>> -----Original Message-----
>> From: [hidden email]
>> [mailto:[hidden email]]On Behalf Of David E. Jones
>> Sent: 08 December 2005 00:19
>> To: OFBiz Users / Usage Discussion
>> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>>
>>
>>
>> Jitender,
>>
>> Being simple or complex depends on who is doing it and how familiar
>> they are with this particular part of the code. The actual work
>> shouldn't take more than a couple of hours, though it may require
>> some changes to a few methods that are involved with this to make
>> sure the Visitor information is available where it is needed. The
>> basic idea is simple: if not user is logged in still update the auto-
>> save shopping list, but use the visitorId instead of the partyId.
>>
>> -David
>>
>>
>> On Dec 7, 2005, at 4:02 PM, <[hidden email]> wrote:
>>
>>> David,
>>>
>>> Could  you suggest what changes would be required at a high level
>>> and is it a simple change or a complex one.
>>>
>>> regards,
>>>
>>> Jitender
>>>
>>> -----Original Message-----
>>> From: [hidden email]
>>> [mailto:[hidden email]]On Behalf Of David E. Jones
>>> Sent: 07 December 2005 20:24
>>> To: OFBiz Users / Usage Discussion
>>> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>>>
>>>
>>>
>>> There is actually a possible way of doing this based on the fairly
>>> new Visitor entity. This was actually one of the intents of the
>>> Visitor entity initially, though the need evaporated so it was never
>>> developed.
>>>
>>> -David
>>>
>>>
>>> On Dec 7, 2005, at 10:20 AM, A. Zeneski wrote:
>>>
>>>> Actually I think you are right. It does only work for a logged in
>>>> user; since it needs to know who the cart is associated with.
>>>> Anonymous shoppers will have their cart in memory until the session
>>>> goes away. At that point, if they return there is no way of knowing
>>>> who they are.
>>>>
>>>> Andy
>>>>
>>>> On Dec 7, 2005, at 11:43 AM, <[hidden email]>
>>>> <[hidden email]> wrote:
>>>>
>>>>> Thanks Andy I will try that out but does it work only for the
>>>>> logged in user or for an anonymous user as well.
>>>>> I thought shopping lists only worked  with logged in users.
>>>>>
>>>>> regards,
>>>>>
>>>>> Jitender
>>>>>
>>>>> -----Original Message-----
>>>>> From: [hidden email]
>>>>> [mailto:[hidden email]]On Behalf Of A. Zeneski
>>>>> Sent: 07 December 2005 16:21
>>>>> To: OFBiz Users / Usage Discussion
>>>>> Subject: Re: [OFBiz] Users - Re: Shopping Cart Persistence?
>>>>>
>>>>>
>>>>> There is code in place currently which will persist the shopping
>>>>> cart
>>>>> into a shopping list each time it modified. There is a flag I
>>>>> believe
>>>>> on the product store which enables/disables this behavior. The cart
>>>>> is reloaded each time the user returns based on what is  currently in
>>>>> that special purpose shopping list.
>>>>>
>>>>> Andy
>>>>>
>>>>> On Dec 7, 2005, at 8:39 AM, <[hidden email]>
>>>>> <[hidden email]> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> Can the shopping cart be made persistent for an anonymous journey
>>>>>> by some configurable parameter. Currently OOTB, the shopping cart
>>>>>> is a session based object so I would lose my shopping cart once I
>>>>>> lose the session.
>>>>>>
>>>>>> regards,
>>>>>>
>>>>>> Jitender
>>>>>>
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Re: Shopping Cart Persistence?

Jaki-2
In reply to this post by Andrew Zeneski
Sorry to be resurrecting this ancient thread, but which is this flag mentioned in the quoted post? Kindly help me here as my ofbiz seems unable to persist a shopping cart beyond the current session

Andrew Zeneski wrote
There is code in place currently which will persist the shopping cart  
into a shopping list each time it modified. There is a flag I believe  
on the product store which enables/disables this behavior. The cart  
is reloaded each time the user returns based on what is currently in  
that special purpose shopping list.

Andy

On Dec 7, 2005, at 8:39 AM, <jitender.garg@bt.com> 
<jitender.garg@bt.com> wrote:

> Hi All,
>
> Can the shopping cart be made persistent for an anonymous journey  
> by some configurable parameter. Currently OOTB, the shopping cart  
> is a session based object so I would lose my shopping cart once I  
> lose the session.
>
> regards,
>
> Jitender
>
> _______________________________________________
> Users mailing list
> Users@lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
Users@lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Re: Shopping Cart Persistence?

David E Jones

The field that turns this on and off for a store is  
ProductStore.autoSaveCart.

-David


On May 30, 2008, at 12:43 AM, jaki wrote:

>
> Sorry to be resurrecting this ancient thread, but which is this flag
> mentioned in the quoted post? Kindly help me here as my ofbiz seems  
> unable
> to persist a shopping cart beyond the current session
>
>
> Andrew Zeneski wrote:
>>
>> There is code in place currently which will persist the shopping cart
>> into a shopping list each time it modified. There is a flag I believe
>> on the product store which enables/disables this behavior. The cart
>> is reloaded each time the user returns based on what is currently in
>> that special purpose shopping list.
>>
>> Andy
>>
>> On Dec 7, 2005, at 8:39 AM, <[hidden email]>
>> <[hidden email]> wrote:
>>
>>> Hi All,
>>>
>>> Can the shopping cart be made persistent for an anonymous journey
>>> by some configurable parameter. Currently OOTB, the shopping cart
>>> is a session based object so I would lose my shopping cart once I
>>> lose the session.
>>>
>>> regards,
>>>
>>> Jitender
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Users---Re%3A-Shopping-Cart-Persistence--tp1832282p17552652.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: Users - Re: Shopping Cart Persistence?

Jaki-2
Thanks that seems to have done the trick. But in some cases the cart doesn't get emptied on logout and remains static (has the same contents) even if you login again with a different user.

Also, when you login, the contents added before logging in (or as a guest user) gets totally wiped out and is replaced by the cart for the user (ie the cart with contents the user had added on his previous logged in session). Anyway to fix this? i.e. the cart contents from prior to logging in should be clubbed with the contents loaded after logging in


David E Jones wrote
The field that turns this on and off for a store is  
ProductStore.autoSaveCart.

-David


On May 30, 2008, at 12:43 AM, jaki wrote:

>
> Sorry to be resurrecting this ancient thread, but which is this flag
> mentioned in the quoted post? Kindly help me here as my ofbiz seems  
> unable
> to persist a shopping cart beyond the current session
>
>
> Andrew Zeneski wrote:
>>
>> There is code in place currently which will persist the shopping cart
>> into a shopping list each time it modified. There is a flag I believe
>> on the product store which enables/disables this behavior. The cart
>> is reloaded each time the user returns based on what is currently in
>> that special purpose shopping list.
>>
>> Andy
>>
>> On Dec 7, 2005, at 8:39 AM, <jitender.garg@bt.com>
>> <jitender.garg@bt.com> wrote:
>>
>>> Hi All,
>>>
>>> Can the shopping cart be made persistent for an anonymous journey
>>> by some configurable parameter. Currently OOTB, the shopping cart
>>> is a session based object so I would lose my shopping cart once I
>>> lose the session.
>>>
>>> regards,
>>>
>>> Jitender
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users@lists.ofbiz.org
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users@lists.ofbiz.org
>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Users---Re%3A-Shopping-Cart-Persistence--tp1832282p17552652.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Users - Re: Shopping Cart Persistence?

David E Jones

I haven't had a chance to look at this, but it sounds like some code  
changes are needed to fix these issues (which may have existed from  
when this was implemented the first time, or may have been introduced  
later as other things this uses have shifted around).

-David


On May 30, 2008, at 7:47 AM, jaki wrote:

>
> Thanks that seems to have done the trick. But in some cases the cart  
> doesn't
> get emptied on logout and remains static (has the same contents)  
> even if you
> login again with a different user.
>
> Also, when you login, the contents added before logging in (or as a  
> guest
> user) gets totally wiped out and is replaced by the cart for the  
> user (ie
> the cart with contents the user had added on his previous logged in
> session). Anyway to fix this? i.e. the cart contents from prior to  
> logging
> in should be clubbed with the contents loaded after logging in
>
>
>
> David E Jones wrote:
>>
>>
>> The field that turns this on and off for a store is
>> ProductStore.autoSaveCart.
>>
>> -David
>>
>>
>> On May 30, 2008, at 12:43 AM, jaki wrote:
>>
>>>
>>> Sorry to be resurrecting this ancient thread, but which is this flag
>>> mentioned in the quoted post? Kindly help me here as my ofbiz seems
>>> unable
>>> to persist a shopping cart beyond the current session
>>>
>>>
>>> Andrew Zeneski wrote:
>>>>
>>>> There is code in place currently which will persist the shopping  
>>>> cart
>>>> into a shopping list each time it modified. There is a flag I  
>>>> believe
>>>> on the product store which enables/disables this behavior. The cart
>>>> is reloaded each time the user returns based on what is currently  
>>>> in
>>>> that special purpose shopping list.
>>>>
>>>> Andy
>>>>
>>>> On Dec 7, 2005, at 8:39 AM, <[hidden email]>
>>>> <[hidden email]> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> Can the shopping cart be made persistent for an anonymous journey
>>>>> by some configurable parameter. Currently OOTB, the shopping cart
>>>>> is a session based object so I would lose my shopping cart once I
>>>>> lose the session.
>>>>>
>>>>> regards,
>>>>>
>>>>> Jitender
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> [hidden email]
>>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Users---Re%3A-Shopping-Cart-Persistence--tp1832282p17552652.html
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Users---Re%3A-Shopping-Cart-Persistence--tp1832282p17559290.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: Users - Re: Shopping Cart Persistence?

Jaki-2
With a view to implement the above requirement, I decided to use the session object to store the cart existing prior to login. Then once the user logs in, I would add the items in this session object to the items in the users own cart which is retrieved after logging in ( i have 'auto-save' enabled).
I did this by adding the current cart into the session object with a different name in getCartObject() since that method is the most likely of the cart methods to be called during a session. But I also made sure this is done only if the user is not logged in by enclosing it in an 'if' condn. But in spite of this, the guest cart gets over written with the user's cart everytime he logs in. Can anyone explain why this should happen? I even moved my code into addtoCart() but to no avail.
Even if a new session is created when the user logs in, this custom cart should either remain the same or become null since it should get created only when the user is not logged in


David E Jones wrote
I haven't had a chance to look at this, but it sounds like some code  
changes are needed to fix these issues (which may have existed from  
when this was implemented the first time, or may have been introduced  
later as other things this uses have shifted around).

-David


On May 30, 2008, at 7:47 AM, jaki wrote:

>
> Thanks that seems to have done the trick. But in some cases the cart  
> doesn't
> get emptied on logout and remains static (has the same contents)  
> even if you
> login again with a different user.
>
> Also, when you login, the contents added before logging in (or as a  
> guest
> user) gets totally wiped out and is replaced by the cart for the  
> user (ie
> the cart with contents the user had added on his previous logged in
> session). Anyway to fix this? i.e. the cart contents from prior to  
> logging
> in should be clubbed with the contents loaded after logging in
>
>
>
> David E Jones wrote:
>>
>>
>> The field that turns this on and off for a store is
>> ProductStore.autoSaveCart.
>>
>> -David
>>
>>
>> On May 30, 2008, at 12:43 AM, jaki wrote:
>>
>>>
>>> Sorry to be resurrecting this ancient thread, but which is this flag
>>> mentioned in the quoted post? Kindly help me here as my ofbiz seems
>>> unable
>>> to persist a shopping cart beyond the current session
>>>
>>>
>>> Andrew Zeneski wrote:
>>>>
>>>> There is code in place currently which will persist the shopping  
>>>> cart
>>>> into a shopping list each time it modified. There is a flag I  
>>>> believe
>>>> on the product store which enables/disables this behavior. The cart
>>>> is reloaded each time the user returns based on what is currently  
>>>> in
>>>> that special purpose shopping list.
>>>>
>>>> Andy
>>>>
>>>> On Dec 7, 2005, at 8:39 AM, <jitender.garg@bt.com>
>>>> <jitender.garg@bt.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> Can the shopping cart be made persistent for an anonymous journey
>>>>> by some configurable parameter. Currently OOTB, the shopping cart
>>>>> is a session based object so I would lose my shopping cart once I
>>>>> lose the session.
>>>>>
>>>>> regards,
>>>>>
>>>>> Jitender
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users@lists.ofbiz.org
>>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users@lists.ofbiz.org
>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Users---Re%3A-Shopping-Cart-Persistence--tp1832282p17552652.html
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Users---Re%3A-Shopping-Cart-Persistence--tp1832282p17559290.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>