-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix use get_is_discountable instead is_discountable attribute from product #4071
Conversation
@@ -655,7 +655,7 @@ def can_apply_benefit(self, line): | |||
""" | |||
Determines whether the benefit can be applied to a given basket line | |||
""" | |||
return line.stockrecord and line.product.is_discountable | |||
return line.stockrecord and line.product.get_is_discountable() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a test demonstrating the issue you are describing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@specialunderwear I add picture for describe more and my branch already has tests added. Can you approve workflow for run test from github CI.
Hi there is a failing test:
I think you need to update the fixtures to fix this. If you fix this we will review again. We are going to review pull requests weekly from now! You can run the tests by running |
Failed to push changes to this branch so reopened in #4102 4102 |
When there are product discountable true and variant discountable false in cart in the same time, discount is calculated for variant which is incorrect.