View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002132 | OXID eShop (all versions) | 1.09. Integrations: Facebook, Trusted Shops, Shop lupe, Econda | public | 2010-09-25 09:34 | 2012-12-07 14:35 |
Reporter | leofonic | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.4.2 revision 29492 | ||||
Fixed in Version | 4.4.4 revision 30554 | ||||
Summary | 0002132: First Item disappears from basket when Facebook like is enabled | ||||
Description | When FB like is enabled, the very first product that is put to basket disappears from basket. This only happens if the product is put to basket via detail page, and it only happens once per browser session. When FB like is disabled, everything is fine. | ||||
Steps To Reproduce | In Demoshop - Open up a fresh browser session - Go to detail view of an article - Click "add to cart" - Click "proceed to checkout" - The Shopping Cart is empty! | ||||
Additional Information | German Forum: http://www.oxid-esales.com/forum/showthread.php?t=6921 | ||||
Tags | |||||
Theme | |||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
The problem is related with browsers check i oxsession::_isSwappedClient(). Method checks if user browser agent was changed - if yes, new session id is generated. Facebook Like button uses Facebook hit bot access (User-agent: facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)). The bot retrieves the og:site_name meta tag and displays the site name it gets from there. So oxsession class checks that user agent was changed and resets session. The solution is to add facebook hit bot to Search-Engine Robots list in config.inc.php file: $this->aRobots = array(..., 'facebookexternalhit'); |