View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006634 | OXID eShop (all versions) | 2.6. Administer orders | public | 2017-05-09 21:29 | 2017-05-11 10:38 |
| Reporter | mario_lorenz | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 4.10.4 / 5.3.4 | ||||
| Summary | 0006634: list_order SQL, the "group by" ignore order id | ||||
| Description | in the method List_Order->_prepareWhereQuery the group by groups the articles by articles-oxid and not by order-oxid. If you have two orders with the same article, in both orders the articles are adds together. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Theme | Not defined | ||||
| Browser | Not defined | ||||
| PHP Version | Not defined | ||||
| Database Version | Not defined | ||||
|
|
Kindly test the functionality in Oxid Demoshop: https://demoshop.oxid-esales.com/professional-edition/ Also please send screenshots where the articles in different orders gets added together. Thanks. |
|
|
The best way is, if i can send to you a anonymus DB-Dump of the order-DBs. Or is it possible to send a PM via Mantis? |
|
|
Any or all information regarding the bug has to be attached to this page. This will help any person who works on the bug to get all the required info. Also if I understand the issue correctly, the added up articles will be listed in the Shop admin view. A few screenshots of the articles in the admin view and the original order in the frontend view should help us understand the issue better. Important: Kindly confirm if the bug is reproducible in the Oxid Demoshop. Thanks |
|
|
Ok, i try to explain. In the screenshot "orders_list", you can see the order from 23.04.2017 18:40. It looks, that the customers orders 2 x "Fauna...". But if you click in the orders_details (see screenshot "orders_details") you see, that the customer orders only 1 x "Fauna ...". (The same happens with the order 23.04.2017 16:41). I´ve looked to the table "oxorderarticles". I found two rows with the "Fauna..." article. One from the order descriped before, and one from another correct order. You can reproduce it, by ordering the same article with two different accounts, so that you´ve two orders in the backend. Then have a look at the list order. You see one of the orders, with 2 items of the same article. Here my temporary solution: When you have a look to the method: List_Order->_prepareWhereQuery You see, that you group the listing-SQL-Result by oxorderarticles.oxartnum $sQ .= " group by oxorderarticles.oxartnum"; I´ve fixed it, by overloading the method with my own grouping: $sQ .= " group by oxorder.oxid, oxorderarticles.oxartnum"; So i have the correct order, with the correct count of articles by order. |
|
|
Thanks for the clear explanation. The scenario that you have explained is the intended behaviour. Kindly check the info under "Bestellübersicht" in the URL: https://www.oxid-esales.com/de/support-services/dokumentation-und-hilfe/oxid-eshop/betrieb/bestellungen.html The Bestellübersicht/Order Summary will show all articles that have been ordered across different orders. It shows a statistic of ordered articles. For example, if one article, say Art1 is ordered 1 each in Order1, Order2 and Order3, then Bestellübersicht will display the quantity of Art1 and the amount displayed will be 3(total Art1 ordered in all orders) Hence closing the issue. |