View Issue Details

IDProjectCategoryView StatusLast Update
0006699OXID eShop (all versions)2.3. Extensions (modules, themes)public2017-09-26 09:06
ReporterAlexN 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version4.10.4 / 5.3.4 
Target VersionFixed in Version 
Summary0006699: Two issues with the serialized basket
DescriptionIn my case I have extended oxBasketItem to override the method getTitle().

1) Changes to an extended oxBasketItem class does not take effect when a shop user added articles to the basket already

Let's say a user is browsing the shop and added articles to basket already. Then a module extending oxBasketItem is activated which displays the title different. For example no "varselect" as in my case. The user won't see the updated title unless he removes every article and re-adds them.


2) Validation the basket fails when deactivating a module which extends the basket


As long as the module is active, shop users can browse the shop without problems. However, should the module be deactivated and a shop user tries to open any frontend page following message is returned to the user:

---
Fatal error: oxSession::_validateBasket(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "TroFlow_Model_TroOxBasketItem" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in [...]/core/oxsession.php on line 639
Steps To Reproduce1) Changes to an extended oxBasketItem class does not take effect when a shop user added articles to the basket already

- create a new module which extends oxBasketItem and overrides method getTitle
- open the shop and add an article to the basket
- activate the module in the backend
- reload the basket page
--> you should not see the changed title

2) Validation the basket fails when deactivating a module which extends the basket
- remove the article from basket
- add a new article to the basket
--> you should see the new title now
- deactivate the module
- open any shop page
--> you should receive a message like in the description
TagsBasket, Module, Session
ThemeNot defined
BrowserNot defined
PHP Version5.6
MySQL VersionNot defined

Activities

There are no notes attached to this issue.