View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000632 | OXID eShop (all versions) | 1. ----- eShop frontend ----- | public | 2009-02-24 23:13 | 2012-12-10 14:38 |
Reporter | Carolin | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.0.1.0 revision 15990 | ||||
Fixed in Version | 4.1.0 revision 17976 | ||||
Summary | 0000632: Saving shopping basket for user does not work | ||||
Description | Settings: http://demoshop.oxid-esales.com/professional-edition/admin/ Main Menu -> Core Data -> Perform. unchecked: Disable shopping basket saving for user ____________________________________________________________ Now I am moving to your site: http://demoshop.oxid-esales.com/professional-edition/ Login -> user: admin pw: admin I add the "Original BUSH Beach Radio" to my basket. Logout -> restart Browser Login -> user: admin pw: admin Expected Result: "Original BUSH Beach Radio" is still in my basket. RESULT: My basket is empty. In my opinion this is a bug because the basket is empty, although I didn't select the option "Disable shopping basket saving for user". | ||||
Tags | No tags attached. | ||||
Theme | |||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||
|
Fix in oxbasket::_mergeSavedBasket(): Wrong: $this->addToBasket( $oItem->getId(), $oItem->dAmount, $oItem->aSelList, null, true ); Good: $this->addToBasket( $oItem->oxuserbasketitems__oxartid->value, $oItem->oxuserbasketitems__oxamount->value, $oItem->getSelList(), null, true ); |
|
Thanks for the fix. I've tried it and saving basket for users works. But there's a problem with the "remove" function in basket step 1. I'm a registered User and put something to my basket. Then I decide to remove some items or all items (basket step 1). On next visit (new session) all products will be displayed again, also the removed items. If you want to take a closer look on this bug visit: (we've integrated your solution to this PE 4.0.1.0) http://www.hardcore-bb-shop.de User: 11420 PW: testumgebung It's our test environment. So feel free to order. It would be great to find your solution in a comment. Kind regards, Carolin Krieg |
|
Due to bug in code history renewal only worked when adding products to basket. Buggy code: if ( !$blBundle && !$blRemoveItem ) { $this->_addItemToSavedBasket( $this->_aBasketContents[$sItemId]->getProductId(), $dAmount, $aSel, $blOverride ) ); } Fine code: if ( !$blBundle ) { $this->_addItemToSavedBasket( $sProductID, $dAmount, $aSel, $blOverride ); } |