View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006357 | OXID eShop (all versions) | 1.03. Basket, checkout process | public | 2016-03-24 15:27 | 2024-03-13 13:57 |
Reporter | avalue | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | acknowledged | Resolution | open | ||
Product Version | 4.9.7 / 5.2.7 | ||||
Summary | 0006357: getBasketSummary returns wrong item count | ||||
Description | I 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 Reproduce | 1. 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". | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | 5.6 | ||||
Database Version | Not defined | ||||
|
Please let us know where and how you Output the contents of getBasketSummary and why you do not use [{$oxcmp_basket->getItemsCount()}]. |
|
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 |