Welcome Guest, Not a member yet? Register   Sign In
Multiple different shopping cart instances
#5

[eluser]TheManT[/eluser]
I've discovered something.
When i login (new session) and add items to cart1 and show cart2, the cart2 dont have any item i've added in cart1.
But if i refresh the page, the cart2 comes with the items...

So, i thing i have to load ALL the carts at the first time (when i login for example) e then just use the reference.
Even if i use new CI_Cart, in the second time it comes with values from the other cart...

I think the constructor method get the values from the session...

Am i right?


Messages In This Thread
Multiple different shopping cart instances - by El Forum - 08-12-2011, 01:52 PM
Multiple different shopping cart instances - by El Forum - 08-12-2011, 01:59 PM
Multiple different shopping cart instances - by El Forum - 08-12-2011, 02:12 PM
Multiple different shopping cart instances - by El Forum - 08-12-2011, 02:31 PM
Multiple different shopping cart instances - by El Forum - 08-12-2011, 02:59 PM
Multiple different shopping cart instances - by El Forum - 08-12-2011, 03:02 PM
Multiple different shopping cart instances - by El Forum - 03-09-2012, 08:35 PM
Multiple different shopping cart instances - by El Forum - 03-10-2012, 05:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB