This PR resolves #4. Implemented as mentioned in this comment.
Some ideas:
Maybe a new ProductState stating stock status(active but not on stock etc.) can be added. $product->canBeBought() that checks if stock >= minimum_buy_amount can be added in future, when some kind of minimum buying amount mechanism added.
This PR resolves #4. Implemented as mentioned in this comment.
Some ideas:
Maybe a new
ProductState
stating stock status(active but not on stock etc.) can be added.$product->canBeBought()
that checks ifstock >= minimum_buy_amount
can be added in future, when some kind of minimum buying amount mechanism added.