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

fix apply discount amount to FPT percent discount #929

Conversation

Gaelle
Copy link
Contributor

@Gaelle Gaelle commented Apr 20, 2020

When apply percent discount, FPT were only added to first cart's item

@colinmollenhour
Copy link
Member

Hi @Gaelle can you provide some more info on exactly how this bug is manifested (how to reproduce) and why this fixes it?

@Gaelle
Copy link
Contributor Author

Gaelle commented Apr 20, 2020

Hi,
You must :

  • Apply FPT on products on back-office
  • Create discount code with percent action
  • On front-office, you add minimum 2 products to your cart
  • You apply your discount code on cart

Result : the discount amount is wrong because FPT is only added on first item of your cart.

In Magento code, break is IN the foreach items.

Copy link
Member

@colinmollenhour colinmollenhour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find, I have not tested this myself but agree with your assessment.

@sreichel sreichel self-requested a review May 14, 2020 00:23
@sreichel sreichel added bug Component: SalesRule Relates to Mage_SalesRule labels Jun 5, 2020
@sreichel sreichel merged commit 3f08cf4 into OpenMage:1.9.4.x Jun 9, 2020
@sreichel sreichel added this to the Release 19.4.4 milestone Jun 26, 2020
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 20, 2020
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Component: SalesRule Relates to Mage_SalesRule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants