View Full Version : unique eCart
jon245706
04-06-2009, 01:57 AM
I need to get the eCart to behave in the same way as Amazon's shopping cart.
i.e. when the user logs out or ends their session, the contents of their eCart are saved and available to them when they log back in.
If another user logs in on the same computer, the eCart object retrieves the previous cart that was used on that computer.
Why ?!
If anyone can help please.
Thanks
Ray Borduin
04-06-2009, 10:50 AM
You would have to store the information in a database and retrieve it from the database in order to achieve this result. Very possible with the existing server behaviors "Store cart summary in database" and the add to cart server behavior "Get Cart From Recordset".
jon245706
04-07-2009, 01:27 AM
Hi Ray
I am using the store cart summary & cart details extensions, which seem to be working ok.
I need to make sure that there is only ever one order reference stored ever for each user. i.e. the order never gets shipped or closed. the order always stays on the database (i.e. like a set of permanently saved favourites)
i can see in the asp code that the extension writes that it performs a "delete" operation on the database. is there any documentation on this delete section.
i thought perhaps that if eCart Store Cart Summary sees the current order reference in the database it deletes it and overwrites it.
have i got this wrong ?
Ray Borduin
04-07-2009, 07:21 AM
That is correct that is how it works.... but really you shouldn't need store cart summary at all.
Just use store cart details and use the userID as the cartID setting since each user will have only one cart. The summary table is really there to allow one user to have more than one order, and it wouldn't be necessary unless you wanted a single user to be able to store multiple carts in your scenario.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.