How to resolved buttons not working in IE?


How to resolved buttons not working in IE?

For servers that do not recognize the $HTTP_USER_AGENT variable, the browser type check will fail and cause the code to display wrong dynamic buttons.

Solution: Instead of using $HTTP_USER_AGENT in the browser check, use $_SERVER['HTTP_USER_AGENT']

You need to make a minor update to the tep_browser_detect function in the includes/functions/general.php file. Please locate this line in the file: return stristr($HTTP_USER_AGENT, $component); and replace it with : return stristr($_SERVER['HTTP_USER_AGENT'] , $component);


You can view this article online at:
http://docs.algozone.com/article/how-to-resolved-buttons-not-working-in-ie