magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.52k stars 9.31k forks source link

Tier pricing when price scope is Website #22784

Open proatwork opened 5 years ago

proatwork commented 5 years ago

Preconditions (*)

  1. Magento 2.3.1 CE
  2. PHP 7.1.23
  3. Global-Settings catalog/price/scope = 1 (WEBSITE) bin/magento config:set catalog/price/scope 1
  4. Add store codes to URLs (for easy testing)

Steps to reproduce (*)

  1. Create two separate websites (I will name them "Okay" and "Bug")
  2. Set the default base currency (All Storeviews scope) to SEK, display currency to USD and allowed currencies to USD and EUR
  3. Set the "Bug" base currency to EUR, display currency to EUR and allowed currencies to EUR only
  4. Under Stores > Currency > Currency Rates set:
    • 1SEK = 0.10USD = 0.093EUR
    • 1EUR = 10.75 SEK = 1.12USD
  5. On a product

    • in All Storeviews scope image

    • set the price to 100SEK image

    • set a discount based tier: image

    • in "Bug" scope

      • set the price to 10EUR image

      • Ttier pricing will still exist/be inherited in this scope: image

Expected result (*)

  1. In the "Okay" store, the tier pricing is correctly calculated image
  2. In the "Bug" store, the tier prices should be calculated correctly image

Actual result (*)

  1. In the "Bug" store, the tier pricing is incorrectly calculated image

If you set a 1:1 currency rate between EUR and SEK then the tier prices work correctly, but the EUR prices on the "Okay" store are affected.

m2-assistant[bot] commented 5 years ago

Hi @proatwork. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me 2.3-develop instance - upcoming 2.3.x release

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

@proatwork do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

m2-assistant[bot] commented 5 years ago

Hi @AlexWorking. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

proatwork commented 5 years ago

@magento-engcom-team give me 2.3-develop instance

magento-engcom-team commented 5 years ago

Hi @proatwork. Thank you for your request. I'm working on Magento 2.3-develop instance for you

magento-engcom-team commented 5 years ago

Hi @proatwork, here is your Magento instance. Admin access: https://i-22784-2-3-develop.instances.magento-community.engineering/admin Login: admin Password: 123123q Instance will be terminated in up to 3 hours.

proatwork commented 5 years ago

I was able to reproduce bug in 2.3-develop instance

"Okay" Store Screen Shot 2019-05-08 at 14 19 48

"Bug" Store Screen Shot 2019-05-08 at 14 19 53

AlexWorking commented 5 years ago

Hello @proatwork. We confirm the issue, but please add to Your Steps to Reproduce one more step You most probably just forgot to add. The step concerning setting currency rates of SEK to EUR and EUR to SEK. Without this step everything works seemingly correctly, (though indeed it doesn't). Also please remove points with the sample data from the post as they are not necessary for the issue reproduction. Thank You.

magento-engcom-team commented 5 years ago

:white_check_mark: Confirmed by @AlexWorking Thank you for verifying the issue. Based on the provided information internal tickets MAGETWO-99608, MAGETWO-99609 were created

Issue Available: @AlexWorking, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

m2-assistant[bot] commented 5 years ago

Hi @irajneeshgupta. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:


github-jira-sync-bot commented 3 years ago

Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x, ^Area:.*

Once all required labels are present, please add Issue: Confirmed label again.

github-jira-sync-bot commented 3 years ago

:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.magento.com/browse/AC-828