Skip to content

Custom option price calculation is wrong with multi currency when option price type is percentage.  #19561

Closed
@nimitaemipro

Description

@nimitaemipro

When we set multi currency custom option with percentage price type, the price calculation is wrong.

Preconditions (*)

  1. Magento V2.3.0 with sample data
  2. PHP 7.1

Steps to reproduce (*)

Set multi currency in Magento from Stores > Configuration > General > Currency setup (I have set indian Rupee)

  1. Set Currency Rates in Magento from Stores > Currency Rates ( Ist -> 70.09, Usd -> 1)
  2. Goto Catalog > Product and edit any Simple product.
  3. Set custom option typed ‘dropdown’ and add options with Price type ‘percentage’.
  4. Go to Front end product details page in which you have created custom options.
  5. Change currency from Currency drop down.
  6. Now option price is changed with wrong value.
  7. It is converted twice time from previous currency.

Expected result (*)

Product Price= 34$ => 2383.06 RS.
Custom option price: 10% =3.4$ => 238.30RS
Here option price should be 238.3 RS because I have set 10% price of this option.

Actual result (*)

Product Price= 34$ => 2383.06 RS.
Custom option price: 10% =3.4$ => 238.30RS
Here option price displayed 16702.87 RS which is wrong because it is converted twice time.

wrong_price_calculation

Metadata

Metadata

Assignees

Labels

Component: CatalogFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: PR CreatedIndicates that Pull Request has been created to fix issueReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions