Skip to content

[Forwardport] Module Catalog: fix issue with custom option price conversion for different base currency on website level#1

Closed
oleksii-lisovyi wants to merge 140 commits into2.3-developfrom
2.3-develop-PR-port-18225
Closed

[Forwardport] Module Catalog: fix issue with custom option price conversion for different base currency on website level#1
oleksii-lisovyi wants to merge 140 commits into2.3-developfrom
2.3-develop-PR-port-18225

Conversation

@oleksii-lisovyi
Copy link
Copy Markdown
Owner

Original Pull Request

magento#18225

Description

Issue is connected to the custom option price conversion based on base currency configured on default level, but not on website level (Magento allows to configure different base currency on website level according to documentation).

It's reproduced on the following Magento setup with multi-currency configuration:

  1. There are 2 websites configured: US and CA (or another one).
  2. Base Currency is configured in the next way: default level - USD; CA - CAD.
  3. And if you try to update product with custom options (with non zero price) on CA website level, for example, you need just to change product price, every time you save the product, custom options price will be converted according to USD/CAD currency rate.

Fixed Issues (if relevant)

No related issues found.

Manual testing scenarios

Steps to reproduce

  1. Create 2 websites on Magento: US website and CA website.
  2. Set up Base Currency to USD (or any other) on default scope.
  3. Set up Base Currency to CAD on CA website scope.
  4. Create product with custom options and set up non zero price for option value.
  5. Save the product.
  6. Change configuration scope on CA website.
  7. Save product.

Expected result
Custom option value price is not changed, because no actual changes were done.

Actual result
Custom option value price is updated according to USD/CAD currency rate.

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)

nathanjosiah and others added 30 commits April 9, 2018 11:07
- Added *.phtml files to exclusion list for PSR2 end tag static test.
okolesnyk and others added 26 commits September 21, 2018 17:14
- update regex in integration tests
- skip MTF test
- add to CPD blacklist
Fix CE integration and static tests on Magento + MSI
…to-engcom/magento2ce into ENGCOM-2948-magento-graphql-ce-132
…beta_bugs

[honey] MAGETWO-91034: Renaming of new setup commands and setup:install/setup:upgrade attributes
Accepted Public Pull Requests:
 - magento#18142: Replace intval() function by using direct type casting to (int) where no default value is needed (by @mage2pratik)
 - magento#18136: [2.3] Update labels section in README.md (by @sidolov)
 - magento#18117: Change sort order for customer group options (by @dmytro-ch)
 - magento#18102: Replace sort callbacks to spaceship operator (by @mage2pratik)
 - magento-commerce/async-import#15: add support HTTP DELETE method for async bulk request by adding mergi� (by @anvasiliev)


Fixed GitHub Issues:
 - magento#18101: Wrong sort order for customer groups in customer grid filter (reported by @sreichel) has been fixed in magento#18117 by @dmytro-ch in 2.3-develop branch
   Related commits:
     1. 568fa46
     2. ed99490
 - merged latest code from mainline branch
[epam] MAGETWO-95105: [2.3] URL Key column with accented characters not converted after importing the CSV file
 - merged latest code from mainline branch
@oleksii-lisovyi oleksii-lisovyi force-pushed the 2.3-develop-PR-port-18225 branch from baf7a34 to 4719a6e Compare September 26, 2018 10:11
oleksii-lisovyi pushed a commit that referenced this pull request Mar 28, 2019
engcom-Kilo pushed a commit that referenced this pull request Aug 17, 2020
Merge changes from origin repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.