Session cart guidance requested

tshirley 13 Nov, 2018
Hello,

I can see the "Session Cart" Action and I can see that its function is to add, remove or replace items just as a shopping cart might. But when I try to use it nothing seems to happen. I thought it may save the data in a session variable named for the action, but when I tried to retrieve that variable there is nothing there.

So can anyone explain how to use it, and how the data is managed? It looks to be quite useful to provide simple shopping cart functionality, if only I can find where the data ends up🙂

Cheers

Tim
healyhatman 14 Nov, 2018
The data is stored in {session:session_cart_name}
As to how you actually use the cart: no idea
GreyHead 14 Nov, 2018
Hi Tim,

Looking at the code it appears to just update the data using an array in the User session using some cart functionality i.e. if the item already exists then it updates the quantity, etc.

Does the Debugger action show you the session content?

Bob
This topic is locked and no more replies can be posted.