Skip to content

After adding custom price to product currency is not converting on cart page and checkout #12493

@vishalmangoitsolutions

Description

@vishalmangoitsolutions

Preconditions

  1. Magento 2.2

Steps to reproduce

  1. Followed following thread to add item in cart with custom price:
    https://webkul.com/blog/magento2-set-custom-price-of-product/

Expected result

  1. item custom price, subtotal should convert to selected currency on cart page, minicart and checkout.

Actual result

  1. Currency symbol is changed but currency not converting.

I have tried to fix item price issue by replace line 430
$price = $this->getCustomPrice();
with
$price = $this->priceCurrency->convert($this->getCustomPrice(), $this->getStore());
in file
magento22/vendor/magento/module-quote/Model/Quote/Item/AbstractItem.php
It is working fine too but subtotal doesn't change.

Metadata

Metadata

Assignees

Labels

Issue: 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 developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced 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