ssolovey / ecp

ECP - Ecommerce project based on Magento
Open Software License 3.0
1 stars 0 forks source link

error message on order placement #308

Closed ssolovey closed 9 years ago

ssolovey commented 9 years ago

I was trying to order some item: Year: 2002 Make: Ford Model: E-150 Econoline Engine: 4.2L

got following error: "Not all products are available in the requested quantity"

SkyLark commented 9 years ago

This is a new case for us. The problem is that in data the quantity of this product is 0 but it's still enabled.

image

But it still avalibale in inventory Stocks.

2014_11_06_23_09_25_ete_reman_catalog_transmission_t160669_manage_products_catalog_ete_rem

Sergey what could you advise regarding this issue? There is no a quick fix I suppose. It should be investigated.

ssolovey commented 9 years ago

I think during import of inventory total quantity should be updated as sum of all warehouses. I believe it was already implemented by Artem. please check the code.

When user places the order total quantity should be decreased correspondingly.

It should be easy fix.

SkyLark commented 9 years ago

Products were resynced with fix. (OUR TEST INVENT FILE DOESN'T INCLUDE ALL Products, so some of them could still be with this bug after resync)

New feature added according to investigation of failure. The problem was that after order submit we update only total quantity but warehouse quantity was not updated;

Now after order submit we update selected warehouse items number in order to match it with total items number. (3h spent)

ssolovey commented 8 years ago

So it was bug in our implementation?

SkyLark commented 8 years ago

I can't say that this a bug of implementation. I think that while project was growing with the functionality we didn't take this logic into account. I can't recall now what Artem was doing.