CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.commerce_starter_kit Tags:
Item Type: NewsGroup Date Entered: 1/25/2005 4:41:22 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 21 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
dlink22
Asp.Net User
Bug with Shopping Cart1/25/2005 4:41:22 PM

0/0

Noticed a small bug in shopping cart mechanism.

Below is a sample row from CMRC_ShoppingCart database table:

RecordID: 9
CartID: e7e3957d-4154-498a-954b-f602ec3dff0a
Quantity: 1
ProductID: 401
DateCreated: 25/01/2005 11:40:58


If you register as a user and login the shopping CartID GUID gets updated with the CustomerID.


RecordID: 9
CartID: 21
Quantity: 1
ProductID: 401
DateCreated: 25/01/2005 11:40:58


If you click 'Final Checkout' the stored procedure CMRC_ShoppingCartEmpty executes.

DELETE FROM CMRC_ShoppingCart
WHERE
CartID = @CartID



There is also a SP that is run nightly by a scheduled SQL job which deletes shopping cart entries that are more than a day old.

DELETE FROM CMRC_ShoppingCart
WHERE
DATEDIFF(dd, DateCreated, GetDate()) > 1


** BUG **

User goes through the shopping process and adds items to his cart.
Systems sets CartID equal to GUID.
User signs in.
CartID updated to ID of customer.

User gets as far as 'Final Checkout' stage but decides against it.(CMRC_ShoppingCartEmpty not executed).
User closes browser.

User returns an hour or so later to restart the shopping process. This time he
chooses completely different products and quantities.

When the user logs in his CartID GUID is replaced by his CustomerID.
The items from the session 2hrs earlier are still in the shopping cart - so he see's the items he has just added to his cart and the items from the previous session.

Any suggestions on how to best combat this?
dlink22
Asp.Net User
Re: Bug with Shopping Cart1/27/2005 7:11:21 PM

0/0

Come on guys! Any ideas?
jslaybaugh
Asp.Net User
Re: Bug with Shopping Cart3/10/2005 7:46:50 PM

0/0

Don't know if this will answer your problem, but it worked for me on my system that works similar to the commerce starter kit.

I dont use the migrate cart functionality once the user logs in. I simply take their customerID from the login and store it in the order that is being created so that the order is tied to the customer, but their cart is still under their unauthenticated CartID (GUID).

Then, when they finally place their order, i copy the items from their cart to their order. This way, even if they quit right up to the second when they hit place order, its still in the cart that they will see when they come back to the site later.

If they come back on another computer, they will be given a new GUID in the new cookie and their items they put in their cart rom the other computer will simply be removed when the job runs nightly.

Make sense? Help any?
chartster
Asp.Net User
Re: Bug with Shopping Cart3/11/2005 6:50:56 AM

0/0

>>I dont use the migrate cart functionality once the user logs in. I simply take their customerID >>from the login and store it in the order that is being created so that the order is tied to the >>customer, but their cart is still under their unauthenticated CartID (GUID).

Can you explain how you did that?

[email protected].
Asp.Net User
Re: Bug with Shopping Cart3/17/2005 3:55:22 AM

0/0

Hi dlink22,

Did you resolve the problem for the shopping cart, i am also using the commerce project, so does this mean that everyone is having the same problem with the shopping cart.??

Do i need to do somthing to the SQL Table structure to fix??

dlink22
Asp.Net User
Re: Bug with Shopping Cart9/20/2005 1:26:58 AM

0/0

Fix: Modify ShoppingCartDB.cs
<code>
 public String GetShoppingCartId() {

            // Obtain current HttpContext of ASP+ Request
            System.Web.HttpContext context = System.Web.HttpContext.Current;

            // If the user is authenticated, use their customerId as a permanent shopping cart id
   //         if (context.User.Identity.Name != "") {
     //           return context.User.Identity.Name;
     //       }

            // If user is not authenticated, either fetch (or issue) a new temporary cartID
            if (context.Request.Cookies["ASPNETCommerce_CartID"] != null) {
                return context.Request.Cookies["ASPNETCommerce_CartID"].Value;
            }
            else {
                // Generate a new random GUID using System.Guid Class
                Guid tempCartId = Guid.NewGuid();

                // Send tempCartId back to client as a cookie
                context.Response.Cookies["ASPNETCommerce_CartID"].Value = tempCartId.ToString();

                // Return tempCartId
                return tempCartId.ToString();
            }
        }

</code>

By commenting out
<code>
  if (context.User.Identity.Name != "") {
          return context.User.Identity.Name;
      }
</code>
you rely only on the GUID - either fetch (or issue) a new temporary cartID.
Otherwise it returns the current user ID number. Which will have stored previous cart entries if the user did not
checkout on that previous visit.
[email protected].
Asp.Net User
Re: Bug with Shopping Cart9/20/2005 1:56:35 AM

0/0

Hi dlink22,

 

So if i just implement the above code, when the user closes the window does the cart empty itself out???

Does this now mean the shopping cart is ready to produce, once i build??

Thank you

7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Comprehensive VB .NET Debugging Authors: Mark Pearce, Pages: 504, Published: 2003
The Internet Encyclopedia: P - Z Authors: Hossein Bidgoli, Pages: 976, Published: 2004
Encyclopedia of Privacy Authors: William G. Staples, Pages: 676, Published: 2007
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, David Sussman, Chris Ullman, Pages: 735, Published: 2006
Real World Linux Security: Intrusion Protection, Detection, and Recovery Authors: Bob Toxen, Safari Tech Books Online, Pages: 848, Published: 2002
Trends in Enterprise Application Architecture: VLDB Workshop, TEAA 2005, Trondheim, Norway, August 28, 2005, Revised Selected Papers Authors: Dirk Draheim, Gerald Weber, Pages: 143, Published: 2006
Object-oriented Systems Analysis and Design Authors: Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A. Hoffer, Pages: 528, Published: 2004
ASP.NET by Example Authors: Steven A. Smith, Pages: 552, Published: 2002
Mastering Tomcat Development Authors: Ian McFarland, Peter Harrison, Pages: 492, Published: 2002

Web:
Ecommerce Shopping Cart Software | Professional Shopping Malls by ... Finally, an easy ecommerce software solution and shopping cart that allows you to easily build your Online Store from any web browser.
Bugs in your shopping cart: A Taxonomy Bugs in your shopping cart: A Taxonomy. Giri Vijayaraghavan. Cem Kaner. Florida Institute of Technology. Presented at the International Software Quality ...
Shipping adress bug - PayPal Shopping Cart - PayPal Developer ... Found bug with shipping adress, in my paypal account i have 2 shipping adress, i choose second(not primary) adress, and pay. ...
Insect Stings Shopping Cart Shopping Cart (Prices in British Pounds) The cart contents contains the tax applicable to UK and rest of the EU. You will have an opportunity to apply the ...
Bug Catcherz Shopping Cart Bug Catcherz - Taking the sting out of fashion faux pas.
Bug: Logging in clears out your shopping cart I get the weekly emails of new designs, I often find 1 or 2 I like, and end up adding to my cart. When I hit checkout, I remember I should log in, ...
Bugs in Your Shopping Cart: Bugs in Your Shopping Cart: A Taxonomy ... Reference clock and so events can occur, or appear to occur, out of sequence. Random delays complicate timing. Different services will be provided at ...
Vinny the Bug Man shopping cart the Bug Man graphic novel series as a family friendly cartoon ... Vinny the Bug Man visit: 3Dstorybooks.com. Other Books by: Chet Spiewak ...
Google Checkout Bug: Shopping Cart Icons Shown on All Ads It appears that the Google Checkout icon feature was flipped on for all ads earlier today. The first report of the bug was issued at ...
255: Coupon link in shopping cart infobox does not work propely ... Oct 2, 2008 ... Confirmed, a long forgotten bug that has never been fixed. ... a "more info" link is displayed in the Shopping Cart infobox, but the link ...

Videos:
04. Shopping Cart and Bugs We were so tired and apparently Wisconsin doesnt put benches at their bus stops.
Using the Shopping Cart on Chirco.com Just a short video on how to find shipping costs and adding parts on the chirco.com website.
Fashion Bug! Casey Chris Laura Nick and I goofin off
Crackdown Physics bug! This is what happens when you harpoon a pedestrian to a trolley (or shopping cart for our American cousins) in Crackdown. NOTE: This was done in co-...
Tiny Toon Adventures - Scary Dreams - Level 1 View Run: http://www.youtube.com/view_play_list?p=6CC35387B7E93D17 This game is like the beta of "Buster's Bad Dream" (BBD). Both are so bad but at ...
ORDINARY MAN Ep. 2 Big Ears This is the second episode of our super ordinary hero in which he rescues an innocent girl from the clutches of his arch enemy, Big Ears. Like all my...
English bulldog puppies 4 months old Our bullies speedy and dunkin in shopping cart at the pet store
Wilto Rides Again! Wilto is pushed around Ikea in a shopping cart and gives commentary on the things around him.
pankun and james this is a short clip of pankun and james...very funny and cute!! Pankun and James went shopping for bug catching supplies...plz comment or rate
How To Break Web Software - A look at security vulnerabilities in web software Google TechTalks April 13, 2006 Mike Andrews Mike Andrews is a senior consultant who specializes in software security and leads the web application...




Search This Site:










register page not working

sort by manufacturer

mark hughes - buzzmarketing book

ambiguous in namespace

where can i download commerce starter kit v1.1

unknown error 0x800cc810

configuration error

provider concept used in commerce starter kit

error when installing the commerce starterkit

where is the user information stored once a new user is registered?

documentaion

form validation problem

anyone interested in helping develop a fully featured freeware version of ibs store

paypal features in commerce starter

iis problem

portal store by snowcovered

mailing

why is this so complicated

e-commerce practice visual studio .net?

can some one please tell me if im right?

comments on site

problems with csk - stored procedure missing

type 'customerdetails' is not defined.

installation error

ui design

can somebody explain these codes for me?

double slash in url //

dhl shipping services

problem with finalizing the orders.

product categories and subcategories

  Privacy | Contact Us
All Times Are GMT