Skip to content

Multi-Currency not working when setting Custom Prices on adding product to Cart. This occurs on version 2.4.2 and previous versions as well #33134

Open
@ticaje

Description

@ticaje

Preconditions (*)

  1. Magento version 2.4.2.
  2. Clean instance of Magento.
  3. Sample products has been imported.
  4. Two currencies have been defined: dollar and euro.
  5. Dollar is default currency.
  6. One website has been defined with two stores: English(default one) and Spanish store.
  7. A custom module that catches checkout_cart_product_add_after event to set Custom Price according to some specific business logic: https://www.mageplaza.com/devdocs/add-product-to-cart-with-custom-price-magento-2.html

Steps to reproduce (*)

  1. Enter PDP in front-end.
  2. Add product to Cart(dollar currency).
  3. For this product prices has been set(in the code) to 100 dollars.
  4. Product has been added to Cart.
  5. @magento give me 2.4-develop instance - upcoming 2.4.x release

Expected result (*)

  1. Either in mini-cart section or Cart Page the price must be the calculated in the custom module.
  2. For dollar currency the price should be 100 dollars.
  3. For euro currency the price should be 87 euros.

Actual result (*)

  1. For dollar currency the price is 100 dollars.
  2. For euro currency the price is 100 euros.

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • [ x] Severity: S0 - Affects critical data or functionality and leaves users without workaround.

Hi @engcom-Alfa. 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

* [ ]  1. Verify that issue has all the required information. (**Preconditions**, **Steps to reproduce**, **Expected result**, **Actual result**).DetailsIf the issue has a valid description, the label `Issue: Format is valid` will be added to the issue automatically. Please, edit issue description if needed, until label `Issue: Format is valid` appears.

* [ ]  2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add `Issue: Clear Description` label to the issue by yourself.

* [ ]  3. Add `Component: XXXXX` label(s) to the ticket, indicating the components it may be related to.

* [ ]  4. Verify that the issue is reproducible on `2.4-develop` branchDetails- Add the comment `@magento give me 2.4-develop instance` to deploy test instance on Magento infrastructure.  - If the issue is reproducible on `2.4-develop` branch, please, add the label `Reproduced on 2.4.x`.- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and **_stop verification process here_**!

* [ ]  5. Add label `Issue: Confirmed` once verification is complete.

* [ ]  6. Make sure that automatic system confirms that report has been added to the backlog.

I'd really like to add the labels you require in previous answer but I cant' find a way to do that over here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: PricingComponent: PricingIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.2Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions