View Single Post
  #6  
Old 04-15-2009, 10:35 AM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Cool Re: Add to Cart/Buy Now does't work properly in FF, works fine in IE

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
__________________
Version 4.7.6 X-cart Gold
Reply With Quote