News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Cart Session Content

Started by uthpala, October 03, 2013, 10:45:15 AM

Previous topic - Next topic

uthpala

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


Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart