Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Limited Use Coupon Code Works With Guest Checkout #3326

Closed
smockensturm opened this issue Nov 7, 2023 · 2 comments · Fixed by #3327
Closed

[4.x]: Limited Use Coupon Code Works With Guest Checkout #3326

smockensturm opened this issue Nov 7, 2023 · 2 comments · Fixed by #3327
Assignees
Labels
bug commerce4 Issues related to Commerce v4

Comments

@smockensturm
Copy link

What happened?

Description

Per User Discount Limit is not honored on guest checkout.

Limit how many times, per user, the discount is allowed to be applied. This requires a user to be logged in; guests users will not be able to use the discount.

Doesn't appeart o be true at the moment.

Steps to reproduce

  1. Check out as a guest and enter a coupon code where Per User Discount Limit is set to 1

Expected behavior

Shouldn't be applied if Per User Discount Limit is set to 1

Actual behavior

Discount is applied.

Craft CMS version

Pro 4.5.9

Craft Commerce version

4.3.1

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@lukeholder
Copy link
Member

lukeholder commented Nov 8, 2023

I have a potential fix for this in #3327 but will let you know once its in a release. Thanks!

@lukeholder lukeholder self-assigned this Nov 10, 2023
@lukeholder
Copy link
Member

Thanks for reporting that! I’ve just fixed it for the next release.

To get the fix early, change your craftcms/commerce requirement in composer.json to:

"require": {
  "craftcms/commerce": "dev-develop#ad6803123e4dbe5127fb7780a9ed650dda27ac29 as ",
  "...": "..."
}

Then run composer update.

I will update here once the release it out. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commerce4 Issues related to Commerce v4
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants