View Issue Details

IDProjectCategoryView StatusLast Update
0002538OXID eShop (all versions)1.02. Price calculations (discounts, coupons, additional costs etc.)public2012-12-07 15:07
ReporterMoehlis Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.4.5 revision 31315 
Fixed in Version4.5.3 revision 39087 
Summary0002538: item discount adds product after loading basket from last session
Descriptionwhen the basket includes a discount of the itm type, loading the basket from oxuserbaskets(after getting a new session) causes the shop to create normal basket items and applying the discount again. resulting in another additional product. this confuses customers and can provoke errors if modules are extending this functionality.
Steps To Reproducecreate a shop-discount of the type itm
configure the discount, so 1 product will be added to basket for free
log in
put a product to basket
-> this will result in a basket including your product plus the free product from the discount
kill current session
log in
your basket now includes 3 articles: the one you put in by yourself, the one added by the discount earlier and another one from the discount of the current basket

possible solution might be not saving the additional item in oxuserbasketitems

PS: in our case, the additional product is not buyable in normal ways and also doesn't have a price value, so we got some problems here. i think the described situation can cause problems in other shops too, so please accept it as a bug-prevention-feature.
TagsDiscount
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

There are no notes attached to this issue.