Have to press "Add to Cart" twice

cortesmejias

No avatar

2006-11-01 18:45

I'm not sure why but the first time I add an item to the cart I get a Cart is Empty message, then hit back add again and it works. What would be causing this? if i clear my cookies the issue will pop up again..does something initialize the cookie thats not happening the first time I add to cart??

wewior (OpenSolution)

Avatar: wewior

2006-11-01 22:56

try to test it on another server maybe it is something with sessions... which version by the way?

cortesmejias

No avatar

2006-11-02 14:52

I'm using 1.4, I am migrating it to a real domain, right now its on a fake domain and I have my machine's name server pointed to my web host server.

cortesmejias

No avatar

2006-11-02 15:38

Migrated the cart to a live site, still running into the same issue. Tried out fresh cart software with no mods and I still run into this problem. Seems to be a server side issue. The cart for the moment exists @ http://citruswebhosting.com/web-test/colorcart/cart/ (real stripped down cart my flash document links to)

cortesmejias

No avatar

2006-11-02 16:54

Issue resolved. Anyone experiencing this problem open your index.php and add this line at the very top of your page.

<?php
// Initialize a session. This call either creates
// a new session or re-establishes an existing one.
session_start( );

// If this is a new session, then the variable
// $count will not be registered
if (!session_is_registered("count"))
{
session_register("count");
session_register("start");

$count = 0;
$start = time( );
}
else
{
$count++;
}

$sessionId = session_id( );

?>

Back to top
about us | contact