> For the complete documentation index, see [llms.txt](https://docs.personaldiscount.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.personaldiscount.io/personal-discount-for-shopify/troubleshooting/my-shopify-customers-discount-code-was-applied-but-it-shouldnt.md).

# My Shopify customer's discount code was applied, but it shouldn't

#### The discount could have been created with previous settings that didn’t include current restrictions

If the discount was generated before the restrictions were changed in your automation, it won't be affected by the changes. This can happen during the automation when you add the **Minimum purchase amount**, for example, or **restrict the discount to the customer who has placed the order**.

<figure><img src="/files/XiXEHAdlTmBT3fQ9Swaf" alt=""><figcaption></figcaption></figure>

The settings of a particular discount code can check in the section **Discounts** from the **Shopify admin panel**.

<figure><img src="/files/PxBwYIvycpec19DZ5kV8" alt=""><figcaption></figcaption></figure>

If you need to change the details of a particular discount code, just click it and modify desired parameters.

<figure><img src="/files/JJfBMJWpVO0nXzqAFvcZ" alt=""><figcaption></figcaption></figure>
