View Issue Details

IDProjectCategoryView StatusLast Update
0001225OXID eShop (all versions)1.03. Basket, checkout processpublic2012-12-10 13:24
Reporterlittledave Assigned To 
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
Product Version4.1.3 revision 19918 
Fixed in Version4.1.6 revision 22740 
Summary0001225: Lagerbestand/Stock notification sends many emails.
DescriptionWhen 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?
TagsOrder
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

dainius.bigelis

2009-09-04 07:48

reporter   ~0001639

@Developers: please check this case from the source code side, as this case happens only sometimes, so it's hard to reproduce.

arvydas_vapsva

2009-09-07 12:13

reporter   ~0001669

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.

arvydas_vapsva

2009-09-07 12:13

reporter   ~0001670

fixed