[symfony-users] Re: sfShoppingCart

2010-07-09 Thread despuestambien
I'm sorry, $this-getUser()-getShoppingCart()-clear(); works perfectly! I just had an error on the route and it didn't execute the correct action, it was executing the index. Thanks a lot for your help!!! On 8 jul, 10:10, snakemaycry snakemay...@gmail.com wrote: HI I haven't been using

[symfony-users] Re: sfShoppingCart

2010-07-08 Thread James Cauwelier
Are you using an exit(); or redirect after clearing the cart? Working on the object might change the object itself without propagating those changes to your session. Find out which method will save the current state to the session and call it before redirecting (if that is your problem) Good

[symfony-users] Re: sfShoppingCart

2010-07-08 Thread snakemaycry
HI I haven't been using sfShoppingCart for a while, but I've managed to find my code written in Symfony 1.0.x and there I've cleared the cart with code: $this-getUser()-getShoppingCart()-clear(); Hope that helps. Regards PM On Jul 7, 10:49 pm, despuestambien carrau.alejan...@gmail.com wrote:

[symfony-users] Re: sfShoppingCart

2008-02-12 Thread [EMAIL PROTECTED]
Hi, sfShoppingCart is a very simple tool so you will need to build that kind of stuff yourself. But i'm happy you started this discussion because i also don't exactly know how to deal with this problem. I also thought about decreasing the inventory when a user adds an item to the cart or do it

[symfony-users] Re: sfShoppingCart

2008-02-12 Thread Lee Bolding
PROTECTED] Sent: 12 February 2008 08:55 To: symfony users Subject: [symfony-users] Re: sfShoppingCart The other way is to deal with it at check out. The frist user who checks out get the item, all others will see a message 'out of stock' when they hit the checkout button. This way you don't have