Community Forums 

Main Content

Re:2 completely different orders shared the same data?

    Aug 25 2017 08:53:15

    #1

    Mal Stewart

    Join date : 2008-09-18      Posts : 135

    The state management system is complex, that is the system which tells people apart, and it uses: the username of the store, the browser type/version and a cookie or the IP address. If all those things are the same, as can happen if people are using identical computer systems, including the same browser type, in the same building and buying from the same store, then the cart may see the two people (browsers) as the same. Basically, the requests made by their browsers are identical in every way. Normally even people in the same building will look different to the cart as it will use a cookie but that only works if they have cookies turned on and after the first click. A cookie is sent to the browser with the first Add to cart, only when they add a second product or click Recalculate will the cart "know" the cookie is available to identify the browser and start using it. If there is no cookie available then the cart will fall back to using the IP.

    The most likely scenario is that person A clicks to add to the cart. Then before person A does anything else, person B in same building clicks to add something to the cart. Persons B's request will come in without the cookie sent to person A so the cart will assume that there is one person with cookies turned off and will switch to using IP instead.

    The state management system is only required for the main cart page, the Add to Cart and Review cart links. Once someone moves on to the checkout system state is maintained by passing a unique id from page to page which is always 100% reliable.

    Mal's E-commerce Ltd
    http://www.mals-e.com