Great module, extremely useful rules, handy even without using the standard stock side of things (I needed a Max allowed order for items with unlimited stock, rules provided allowed for it quite easily).

I did have a request from the client though, they wanted instead of preventing the order and showing an error, to have the quantity of the particular item to be automatically dropped down to the highest amount available and a nice message displayed saying as much.

I couldn't see anyway of doing this, and thought it would be a very handy addition, in the case of standard stock you could have it reduce it to the maximum amount of stock left over.

Comments

guy_schneerson’s picture

Category: feature » support

Hi @Deciphered and thanks for the positive feedback.

You can easily do what you want by editing the "Stock: validate add to cart" rule and updating the "Set the result of an add to cart stock check" action as follows:

Stock Action: change from "block transaction" to "display message only"

Approved Quantity: should be set to approved-quantity (calculated by the previous rule action)

User message: explain that only part of his request can is available.

let me know how you get on.

deciphered’s picture

Will give it a go next week and let you know.

Thanks for the response.

guy_schneerson’s picture

Status: Active » Closed (works as designed)

Deciphered I assume you got this working but fill free to reopen if still an issue.