VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: uthpala on October 03, 2013, 10:45:15 AM

Title: Cart Session Content
Post by: uthpala on October 03, 2013, 10:45:15 AM
We'll say that multiple users are using the Shoppoing cart at the  same time & each user have items in their carts.
               Product        Ordered Amount(items in cart)
user1 -> A            ->         2
user2 -> A             ->        1
user3 -> B             ->        1
user4 -> A            ->         3


When we get current cart object like this,
   $cart = VirtueMartCart::getCart ();

Say we need how many items of product  A are there in cart,
What is the value we get?
Does it depend on the specific user or, it will display total items ,that has been added by all the users ,returning the value = 6 ?

Any help Please

Title: Re: Cart Session Content
Post by: Maxim Pishnyak on October 03, 2013, 14:57:55 PM
What is the final goal?