• Resolved Anoop Ranawat

    (@anoopranawat)


    Hi,

    I have found the serious issue with discount codes.

    Let me explain what is happening,

    I have created one discount code “free10PERCENT” for 10 percent discount as you had mentioned in description like “Enter a code for this discount, such as 10PERCENT. Only alphanumeric characters are allowed.”

    This discount code is limited once per user. (Use Once Per Customer) but still it redeem multiple times. It is not working once per customer.

    I have debug the issue and found that there is a issue with your condition in class-edd-discount.php file at line no 1759 you are checking code with strtolower and already stored code is in capital letter so condition is not going to be fulfill because in_array check case sensitive.

    Means previously stored code in database while purchasing is “free10PERCENT” and if I try to redeem it again for next purchase then it check “free10percent” with “free10PERCENT”

    Please resolve it as soon as possible. This is a critical issue.

    Thanks and Regards,
    WP Online Support

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘A Serious issue with EDD Discount Codes’ is closed to new replies.