shoppingflux / shoppingfluxexport

7 stars 7 forks source link

Force order creation even when product quantity isn't enough #406

Closed ghost closed 5 years ago

ghost commented 5 years ago

Expected behaviour

When an order has been placed in a marketplace, it should be created in PrestaShop even if there is no stock available.

This is due to the fact that an order placed in a marketplace is already paid and should then be considered created. If there is issue with the availability of the product, it should be managed case by case by the the merchant or cancelled.

When there is not enough stock for a product, we should check the configuration "out of stock" for the product.

Actual behaviour

When there is not enough stock for a product, we are not checking the configuration "out of stock".

Steps to reproduce the behaviour

Create different order with different set of rules for "out of stock" and with different stock in order to reproduce the "actual behavior".

ghost commented 5 years ago

What is required here is to comply to the expected behavior, which might however be an issue for advanced stock management where the stock is not updated in the same way that it is for classic stock.

Advanced stock rely on warehouse stock and stock movement. So we will need to take that in consideration.

As well ze need to find a way to inform the customer is the stock of a product has been "forced" by ShoppingFlux.

ghost commented 5 years ago

406 will be elaborated during changes in progress in #349