Download & Extend

Lifetime qty restriction doesn't check what is currently in the cart

Project:Ubercart Restrict Qty
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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.

AttachmentSize
uc_restrict_qty_check_cart.patch922 bytes

Comments

#1

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