The lifetime qty restriction only checks previous orders in the database and not what the user already has in the cart.

This means if a product has a limit of 3 I can add that product to my cart 4 times then check out.

This patch adds a check of the users cart to avoid this problem.

CommentFileSizeAuthor
uc_restrict_qty_check_cart.patch922 bytesagileware

Comments

agileware’s picture

Actually this probably should happen for any qty restrict, not just lifetime.

jvieille’s picture

Priority: Normal » Critical
Status: Needs review » Reviewed & tested by the community

Actually, uc_restrict does not restrict anything without this patch (though "critical").
Can this be committed - 2 and hlf year after the bug was spotted on and solved?

Thanks

raulmuroc’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (fixed)

Committed.