View Issue Details

IDProjectCategoryView StatusLast Update
0006357OXID eShop (all versions)1.03. Basket, checkout processpublic2016-03-30 13:12
Reporteravalue 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version4.9.7 / 5.2.7 
Target VersionFixed in Version 
Summary0006357: getBasketSummary returns wrong item count
DescriptionI used the function getBasketSummary of oxBasket to provide a json-encoded content of the actual basket. The count "iArticleCount" of "oBasketSummary" shows the wrong number, if the amount is changed at least once. It shows always a higher count.

Steps To Reproduce1. Output the contents of getBasketSummary somewhere.
2. Put an article in the basket.
3. iArticleCount shows "1".
4. Change the amount to e.g. "3"
5. Change it back to "1".
6. iArticleCount shows "4".
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP Version5.6
MySQL VersionNot defined

Activities

QA

2016-03-29 14:43

administrator   ~0011505

Please let us know where and how you Output the contents of getBasketSummary and why you do not use [{$oxcmp_basket->getItemsCount()}].

avalue

2016-03-29 14:49

reporter   ~0011506

Shouldn't all functions of OXID core work as expected?

I made a single file that is actually called via AJAX, to get basket details. The function "getItemsCount" just returns a Count. Because we use OXID as a shop system inside another CMS, we need full basket details provided via AJAX. For this purpose, the function "getBasketSummary" fits perfect, if it would work as expected.

I made a sample file, showing you exactly how it's used:
http://pastebin.com/gc6gN4bV