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

#26583 Tier pricing save percent showing logic updated in product detail page #26584

Conversation

srsathish92
Copy link
Contributor

@srsathish92 srsathish92 commented Jan 29, 2020

Description (*)

Tier pricing save percentage showing logic updated in product detail page

Fixed Issues (if relevant)

#26583

Manual testing scenarios (*)

  1. Create simple product with
    Price - $100.00
    Special price - $65.00
  2. Add tier price rule
    For 2 (Qty) - Fixed $40.00
    For 3 (Qty) - Percentage 36%
  3. Save the product.
  4. View the product in front end

Questions or comments

If any please let me know your feedback

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@m2-assistant
Copy link

m2-assistant bot commented Jan 29, 2020

Hi @srsathish92. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@magento-engcom-team magento-engcom-team added Partner: Ziffity partners-contribution Pull Request is created by Magento Partner labels Jan 29, 2020
@srsathish92
Copy link
Contributor Author

@magento-engcom-team can you please validate this PR?

@srsathish92
Copy link
Contributor Author

@lenaorobei @lbajsarowicz can you please validate this PR?

@ihor-sviziev
Copy link
Contributor

@magento give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev. Thank you for your request. I'm working on Magento instance for you

@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, here is your new Magento instance.
Admin access: https://pr-26584.instances.magento-community.engineering/admin_9fca
Login: ff04e3d7 Password: be745aa67873
Instance will be terminated in up to 3 hours.

@ihor-sviziev ihor-sviziev self-assigned this Feb 12, 2020
Copy link
Contributor

@ihor-sviziev ihor-sviziev left a comment

Choose a reason for hiding this comment

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

Your changes looks good for me, and fix works fine:

Before ❌:
image

After ✔:
image

Could you cover your changes with MFTF test like this?

  • Create product with regular price=100$, special price=65$, tier price qty from 3=36%.
  • Navigate to product page
  • Check if on product page we can see message "Buy 3 for $64.00 each and save 2%"

@engcom-Charlie
Copy link
Contributor

Hi, @ihor-sviziev I'll take care of automated tests.

@ihor-sviziev ihor-sviziev added Auto-Tests: Covered All changes in Pull Request is covered by auto-tests and removed Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests labels Feb 13, 2020
@ihor-sviziev
Copy link
Contributor

@engcom-Charlie in general looks good, let's wait for test results

Copy link
Contributor

@lbajsarowicz lbajsarowicz left a comment

Choose a reason for hiding this comment

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

Sorry, I'm very demanding when it comes to MFTF.
Please review the comments.

Our main recommendation is that Tests should be made mostly of reusable blocks --- Action Groups.

@ghost ghost assigned lbajsarowicz Feb 13, 2020
@ihor-sviziev
Copy link
Contributor

@engcom-Charlie please review comments from @lbajsarowicz above and failing functional tests - looks like special price isn't applied. Please fix it

Copy link
Contributor

@lbajsarowicz lbajsarowicz left a comment

Choose a reason for hiding this comment

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

For failing tests you need to reindex using cron

@engcom-Charlie engcom-Charlie force-pushed the bug/26583-pdp-tier-price-save-percent branch from 9f02e26 to 4680f70 Compare February 17, 2020 09:09
@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, thank you for the review.
ENGCOM-6914 has been created to process this Pull Request

@ihor-sviziev
Copy link
Contributor

@engcom-Charlie thank you for covering this PR with functional tests!

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

Before:
before

After:
after

magento-engcom-team pushed a commit that referenced this pull request Feb 21, 2020
@magento-engcom-team magento-engcom-team merged commit 71863c8 into magento:2.4-develop Feb 21, 2020
@m2-assistant
Copy link

m2-assistant bot commented Feb 21, 2020

Hi @srsathish92, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@sdzhepa sdzhepa mentioned this pull request May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants