Is there a way not to save basket to the database?
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Is there a way not to save basket to the database?

 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server
Author Message
YC Lee
Guest





Posted: Thu Sep 01, 2005 4:52 pm    Post subject: Is there a way not to save basket to the database? Reply with quote

We are using a modified retail2002 for our company site. Is there a way to
store the baskets only in sessions and not in databases? That way when a
customer leaves the site his basket is automatically cleared. Thanks.

YC Lee
Back to top
Nihit Kaul [MSFT]
Guest





Posted: Fri Sep 02, 2005 12:51 am    Post subject: RE: Is there a way not to save basket to the database? Reply with quote

When you do a OrderContext.GetBasket() and the Basket for the userId
specified does not exist in the database, then the basket created is only
in-memory. Only when you do an explciit basket.Save() is it persisted to
database.

In your case, if you do not want to save the Basket to database, simply
skip the Save step.

Thanks,

Nihit Kaul[MSFT]
Commerce Server
http://blogs.msdn.com/nihitk

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
Thread-Topic: Is there a way not to save basket to the database?
thread-index: AcWvAaS74xrnzq1ATkuDg9rWCf75sQ==
X-WBNR-Posting-Host: 205.174.8.4
From: =?Utf-8?B?WUMgTGVl?= <YCLee@discussions.microsoft.com>
Subject: Is there a way not to save basket to the database?
Date: Thu, 1 Sep 2005 07:30:04 -0700
Lines: 6
Message-ID: <B4D38C30-E474-4CB1-ACE8-97AC3E758091@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.general:3339
X-Tomcat-NG: microsoft.public.commerceserver.general

We are using a modified retail2002 for our company site. Is there a way to
store the baskets only in sessions and not in databases? That way when a
customer leaves the site his basket is automatically cleared. Thanks.

YC Lee
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB