Some user complain about not being able to add items on cart
<p>currently some of our users complain that when they click on checkout they are returned to the homepage and the cart items are lost and hence they have to start all over again. The current script is:</p>

<pre><code>/*
* Check the database total against the total in the cart;
* If they are different, kill everything and push the user back to the homepage
*/
        $total = $cart_model-&gt;get_cart_total($this-&gt;uuid);

        if ($total != $cart_model-&gt;total())
        {
            $uuid_session = new Zend_Session_Namespace('uuid_session');
            $uuid_session-&gt;unsetAll();
            $cart_model-&gt;emptyCart();

            echo '&lt;script type="text/javascript"&gt;parent.window.location="http://example.com/"&lt;/script&gt;';
        }
</code></pre>

<p>So how can go about tracking the activity to avoid this issue?</p>
