Ok I got it fixed by x-cart team, heres the solution:
"I've inspected the issue and found out it can be replicated not only under FF but in Opera and IE as well and the following circumstances:
If you try to add something into cart when the URL of your site is the following http://www.yoursite.com/ - everything is OK.
But wheny you try to add something into cart when the URL of the site is the following http://yoursite.com/ - the problem appears.
I've thoroughly investigated the issue and this seems to be a bug of the X-Cart. In order to solve it I've adjuested the following file <xcart_dir>/include/sessions.php and the problem has gone away.
Here is an instruction on how to do it in the future:
1) Please, open the <x-cart dir>/include/sessions.php and find the following section:
Code:
x_session_register("_saved_session_fg", x_session_get_fg());
$_saved_session_fg = x_session_get_fg();func_setcookie($XCART_SESSION_NAME, $XCARTSESSID, 0, "/", $xcart_https_host, 0);func_setcookie($XCART_SESSION_NAME, $XCARTSESSID, 0, "/", $xcart_http_host, 0);
add after it the following:
Code:
func_setcookie($XCART_SESSION_NAME, $XCARTSESSID, 0, "/", "", 0);
2) Find the section:
Code:
$XCART_SESSION_EXPIRY = $expiry_time; $XCARTSESSID = $sessid; func_setcookie($XCART_SESSION_NAME, $XCARTSESSID, 0, "/", $xcart_https_host, 0); func_setcookie($XCART_SESSION_NAME, $XCARTSESSID, 0, "/", $xcart_http_host, 0);
add after it the following:
Code:
func_setcookie($XCART_SESSION_NAME, $XCARTSESSID, 0, "/", "", 0);
Hope this info will help to everyone who has the problem
