I need to change the quote currency to order from the mobile app. For this, I send the quote id from the mobile app, I did the following code on Magento, but it did not work. Suggest me the correct way to change the currency code

$quote = $this->quoteFactory->create()->load(627);

You can try like this:


Note: Code is not tested but hopes it will work as expected.


Please try this:

 /** @var \Magento\Quote\Model\Cart\Currency $quoteCurrency */
                $quoteCurrency = $this->quoteCurrencyFactory->create()
    /** @var \Magento\Quote\Model\Quote $quote */
                $quote = $this->cartRepositoryInterface->get($cartId);
                // forcefully changing the currency for quote

You should use quote Model

$quote = Mage::getModel('sales/quote')->load($shoppingcartid);

Then Set Currency

  • The tag of this question is magento2, you are providing code for magento 1
    – Jimmy
    Mar 26 at 2:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.