Later42 Posted April 3, 2015 Share Posted April 3, 2015 Hello all, I was wondering how one would obtain the user agent of a newly connecting client. I googled around but could not find anything other than using the PHP code, _server 'http_user_agent' I'd rather use a more native prestashop approach. Anybody that knows if and how this would be possible? Regards, Niels Link to comment Share on other sites More sharing options...
razaro Posted April 3, 2015 Share Posted April 3, 2015 (edited) Prestashop uses $_SERVER['HTTP_USER_AGENT'] Check https://github.com/PrestaShop/PrestaShop/blob/16922421eb7e9c93da6ff13b108af32a896508d8/classes/Guest.php for example. Edited April 3, 2015 by razaro (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now