I am using the cart-checkout-validation API function to validate the quantity of items in the cart. This function throws error messages if any product has a quantity larger or smaller than the specified limits.
The issue arises when a user adds products to the cart before the merchant sets these limits, and then tries to delete a product after the merchant specifies a lower quantity limit for that product. In this case, the product cannot be deleted due to the error messages triggered by other products in the cart.
Has anyone encountered this issue before? Is there a solution for this? Alternatively, does anyone know how to identify whether the cart-checkout-validation API function is being invoked specifically due to the deletion or quantity adjustment of products? Any advice or suggestions would be greatly appreciated.
