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 configurable dropdown showing tax incorrectly in 2.3-develop #22466

Conversation

danielpfarmer
Copy link
Contributor

Description (*)

This pull request addresses an issue described in #22270 and introduced in #17695.

The issue is that the price increase calculation was previously based upon the configurable basePrice vs the optionFinalPrice rather than the configurable finalPrice vs the optionFinalPrice. This meant that the tax amount was also been added to the price difference calculation for each of the configurable options incorrectly.

Fixed Issues (if relevant)

  1. 2.2.8 Configurable product option dropdown - price difference incorrect when catalog prices are entered excluding tax #22270: 2.2.8 Configurable product option dropdown - price difference incorrect when catalog prices are entered excluding tax

Manual testing scenarios (*)all Magento 2.

  1. Set prices to be entered excluding tax in the configuration.
  2. Apply product tax using tax rules.
  3. Create a configurable product configurable by only one dropdown attribute (e.g colour or size)
  4. Ensure that the product tax is not added for a second time in the dropdown attribute

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 on Travis CI are green)

… decreases on the configurable attribute dropdown. This fixes a bug introduced in PR magento#17695 as detailed on issue magento#22270
@m2-assistant
Copy link

m2-assistant bot commented Apr 23, 2019

Hi @danielpfarmer. 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-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Apr 23, 2019

CLA assistant check
All committers have signed the CLA.

@magento-engcom-team
Copy link
Contributor

Hi @VladimirZaets, thank you for the review.
ENGCOM-4809 has been created to process this Pull Request

@magento-engcom-team
Copy link
Contributor

@danielpfarmer thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@VasylShvorak
Copy link
Contributor

✔️ QA passed

@m2-assistant
Copy link

m2-assistant bot commented Apr 28, 2019

Hi @danielpfarmer, 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.

@EvaldasDau
Copy link

Well this still doesn't solve the issue. Only the first item in the configurable product drop down is gets fixed.

@danielpfarmer
Copy link
Contributor Author

@EvaldasDau can you give more detail / Steps to replicate? Cheers

@danielpfarmer danielpfarmer deleted the fix/configurable-dropdown-showing-tax branch April 30, 2019 10:17
@danielpfarmer danielpfarmer restored the fix/configurable-dropdown-showing-tax branch April 30, 2019 10:17
@EvaldasDau
Copy link

@danielpfarmer Hey, thanks for reply.

We applied the changes to m2 2.3.1 store local installation, ran setup upgrade and cleaned cache.

Then when checking configurable products with drop down size options, noticed that the first option value was fixed; the + tax amount value no longer was displayed, however rest of the size options still had it.

@danielpfarmer danielpfarmer deleted the fix/configurable-dropdown-showing-tax branch September 5, 2019 15:58
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.

8 participants