View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001225 | OXID eShop (all versions) | 1.03. Basket, checkout process | public | 2009-08-20 12:58 | 2012-12-10 13:24 |
Reporter | littledave | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | resolved | Resolution | fixed | ||
Product Version | 4.1.3 revision 19918 | ||||
Fixed in Version | 4.1.6 revision 22740 | ||||
Summary | 0001225: Lagerbestand/Stock notification sends many emails. | ||||
Description | When an article with low stock/niedrigem Lagerbestand gets ordered, an email gets send to the shop owner to notify them of low stock. In our installation, the email gets sent around 30 times? Does anyone else have this problem? | ||||
Tags | Order | ||||
Theme | |||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||
|
@Developers: please check this case from the source code side, as this case happens only sometimes, so it's hard to reproduce. |
|
Source code itself is not buggy and all loaded and sent data is correct. More than 1 send email probably means huge server load and many orders on time admin got many emails. If you would check code you would see such process flow: (performed as many times as there are articles in one basket) 1. load single article object; 2. check its stock state; 3. store article in product list; 4. change stock reminder state. 5. send email with stock reminder info. I've optimized code a bit: 1. load ALL articles which stock state is below user defined; 2. change stock reminder state for ALL articles which stock state is below user defined; 3. send email with stock reminder info. |
|
fixed |