Jump to content

Coupon limit per customer apparently counting before checking


Recommended Posts

A customer put in a coupon code with global unlimited uses and one use per customer.  When used the first time, it displays an error message that the limit has been reached even though this is the first use.  If you set it to 2 uses per customer, it works on the first use and not the second.  Leave it blank for unlimited per customer and it works fine too.  This would make it appear that the code logic is counting the use BEFORE checking if the limit has been reached.  It sounds kind of silly for a mistake like that to be in the code flow, but testing sure makes it seem that way.

Anyone else see this?

Edited by KirkM
Link to comment
Share on other sites

Sorry, I normally always post that info but was rushing out the door when I typed it and completely forgot.

"There is never enough time to do it right, but there is always enough time to do it over.” ~John W. Bergman

PHP 7.4, CC 6.4.4

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...