Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

All Questions

Tagged with
2
votes
1answer
44 views

Change quote currency before place order

I want to change my quote currency code to EUR when an order is placed in any other currency. I tried writing event and observer of event sales_order_place_before. In my observer I have this code ...
2
votes
1answer
48 views

How to rename currency name?

how can I change "AED - United Arab Emirates Dirham" to "AED - UAE Dirham" in Luma currency switcher? I created en_US.csv file in my custom theme > i18n folder and added "united Arab Emirates" in ...
2
votes
2answers
42 views

M2.3.1 - Remove currency symbol from price

Is it possible to get the price without currency symbol, or a way to put a div around the currency symbol to hide it with css? $block->formatCurrency($block->getDisplayValue(), (bool)$block->...
0
votes
1answer
43 views

Magento 2.3 removed Webservicex and Yahoo Finance Exchange

What i see in magento 2.2 and 2.3 is that Webservicex and Yahoo Finance Exchange are removed. Why are they removed? What are the alternative to them? How can i add them back?
1
vote
0answers
26 views

Get base currency scope in Magento 2 Programmatically

I have created dynamic rows in Product edit form using dataProvider as per my custom requirements. I want to have Catalog Price Scope dropdown with amount option as in screen shot: I have got amount ...
1
vote
0answers
30 views

Show base currency price & display currency price at the same time in magento2?

I would like to show product price in both base currency & display currency. I have already enable display currency in frontend - that is i can see "USD / EUR" in header dropdown. If i want to ...
0
votes
2answers
54 views

How to default display currency change?

I got error (not available in allowed currencies) Sorry, the default display currency you selected is not available in allowed currencies.
5
votes
1answer
51 views

how to get proper indian currency format for price in magento 2?

in magento front end its showing ₹7,765,000.00 But we need ₹77,65,000.00 $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // Instance of Object Manager $priceHelper = $...
3
votes
0answers
107 views

Magento 2 Checkout Page, different price setup

Currently I'm on a magento project and somehow, I can't understand the logic behind this last page. The Currency that I've got is EURO, and in the /vendor/magento/zendframework1/library/Zend/Locale/...
2
votes
2answers
140 views

Magento 2 Currency Switch Dropdown - Remove currency name

In Magento 2 (Luma child theme) when enabling multiple currencies you get a currency switcher dropdown in the frontend's header. By default, it shows the currency code followed by the full name, ...
1
vote
0answers
34 views

Multiple currency not working with custom price quote - Magento 2

I created quote with custom price from Magento admin, it works fine but it does not work multiple currency. e.g) I created quote to customer with custom price $10 (USD currency), when customer checks ...
0
votes
0answers
21 views

How to change Credit Currency on Companies?

I already selected in Stores/Configuration/General/Currency Setup/Currency Options/Allowed Currencies: Mexican Peso Colombian Peso etc... But when i visit Customers/Companies/Company Credit/...
0
votes
1answer
54 views

Page cache issue, my plugin only works after the first page load

I have created a module that autoselects a currency based on the user's country using a plugin for Magento\Store\Model\Store::getDefaultCurrencyCode() . On the first page load it will show the ...
0
votes
0answers
24 views

Magento2: Can I charge orders by order currency & use that for invoices/creditmemos as well?

I'm using a custom payment gateway module & I noticed that it's always using the base currency (event when my store has multiple currencies & I picked a different one from the switcher). On ...
0
votes
2answers
170 views

How to convert rate from any currency to base currency in magento 2

class Data extends AbstractHelper { protected $_storeManager; protected $_currencyFactory; public function __construct( \Magento\Store\Model\StoreManagerInterface $storeManager, ...
0
votes
0answers
33 views

Magento 2 Multiple storeviews Product price incorrect

we have different Multiple websites and store views ( Magento Vesrion 2.2.5 ). Our base website is australia. We have created and configure the website, storeviews (English & Indonesia) for ...
0
votes
0answers
78 views

Magento 2 - Product custom price not change based with current currency

I have used checkout_cart_product_add_after event, to add the custom price in catalog product. I used the code for to add custom price, $item->setCustomPrice($price); $item->...
1
vote
0answers
64 views

Change currency showed in reports - Magento 2

Hi all Magento Wizards, I have a question regarding the currency shown in reports. I have a Magento webshop where my base currency is Euro. I have multiple websites and store views, which have ...
1
vote
2answers
329 views

How change currency position from left to right?

How can I change currency position? I referred this, But, I have not it app\code\Vendor\Extension\etc\ What should I do?
2
votes
0answers
78 views

How to get store currency in cms blocks in magento2

I have a CMS block which will be used in multi-currency stores. I have a content,lets say "Grab it for USD 100".Now I want this to change based on store currency selected.How can i achieve this on ...
1
vote
1answer
234 views

the default display currency you selected is not available in allowed currencies

i am new in magento 2, i want to set my currency to dinar but i did not find this currency. how to add a new currency BO. other question: the Us dollar is not available in allowed currencies even it ...
0
votes
2answers
346 views

How can I add custom currency and display it to backend and frontend?

I have a fresh Magento 2 setup in my system. I want to add custom currency for my store. I have been following the reference link to add it but I didn't get the result from it. https://community....
0
votes
2answers
35 views

HOW TO IMPORT AED , CANADA , GERMANY, FRANCE, JAPAN, SINGAPORE, CHINA CURRENCY IN MAGNETO2.2

AFTER SELECT AED CURRENCY IN UAE STORE. FRONTEND SHOWING ONLY USD CURRENCY. HOW I SHOW AED CURRENCY IN UAE STORE ON FRONTEND? ALSO OTHER DIFFRENT-2 CURRENCIES FOR DIFFERENT-2 STORE VIEWS?
0
votes
0answers
18 views

Magento2.2.5: Modify Allowed Currencies list

Is there any solution to add new currencies into allowed currency list in Magento2? As I realized it is not as simple as in magento1. A currency somehow is tied to regional data but just modifying en....
0
votes
0answers
159 views

Currency issue with Payflow Pro Paypal Payment method in Magento 2

I'm facing an issue with currency on PayPal using Payflow Pro payment method in Magento 2.1.12 In-Store, there is 2 currency CAD and USD for each store view and I have used Amasty Geo IP Redirect ...
1
vote
1answer
109 views

in Magento 2: How to set Currency by default Billing Address Country

How we can set Currency by default Billing Address Country. I was trying to implement the same using the solution mentioned in How to set Currency by default Billing Address Country in Magento 1.9?...
0
votes
0answers
54 views

Magento 2 : How can I change currency sign to superscript across all product prices?

I want to change currency symbol (£) to go superscript for all products across the shop. How can I do that? I believe prices are generated via JavaScript in magento 2? I have added the image what I ...
3
votes
2answers
758 views

Magento 2 curreny import issues

Currently all Magento default imports of currency are not working for a fresh demo install of Magento 2.2.4 and a couple of my active Magento 2.2.X projects. I've tried with Yahoo Finance Exchange, ...
0
votes
1answer
817 views

how to add currency switcher dropdown in magento2 custom header

I created custom header using below link. http://oxsoftwares.com/add-custom-header-in-custom-theme-magento2/ I want to add currency switcher inside the custom header, how can we call currency ...
0
votes
3answers
609 views

I am unable to update currency automatically on Magento 2

Automatic updates of foreign currency does not happen
0
votes
1answer
138 views

Magento 2 Currency Rates Cron not run automatically

In Magento 2.1.8 website . currency rates does not automatically(cron) not working. You can also show my "Scheduled Import Settings" into Below image
0
votes
1answer
666 views

Magento 2 - Rounding Float Values to Currency Precision

Currently I have stored values based on percentages of order subtotals out to a precision of 4 decimal places in the database. I need to show a balance as a total sum of those percentages. I have an ...
2
votes
0answers
449 views

show currency symbol of SAR in both store view

I have store in two views Arabic and English. if I delete this code from /home/store/public_html/site/vendor/magento/zendframework1/library/Zend/Locale/Data/ar_SA.xml <numbers> <...
0
votes
2answers
1k views

How to get current currency symbol in magento 2 js

I want to use current currency symbol in custom module Js. define([ 'jquery', 'ko', 'uiComponent' ], function ($, ko, component) { 'use strict'; return component.extend({ initialize: ...
4
votes
3answers
1k views

Magento2 get all the currencies for default store

I have more than 5 currencies for my default store, I want to fetch all those currencies codes and symbols programmatically.
-1
votes
1answer
729 views

Magento 2: How to move currency switcher

I'm fairly new to Magento 2 and I need guidance on how to move the currency switcher from the top-header-content and into the middle-header-content. I'm using the Claue theme. I understand the that ...
1
vote
0answers
286 views

switch to currency in magento 2 programmatically

I'm trying to switch to "euro" in magento2 index.php for some visitors, but i didn't find how to set currency, this is my code : $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER); $...
1
vote
4answers
2k views

Magento 2 : How do conver price from any currency to base currency?

I am converting price from any other currency using currency code to base currency and for this I am using this method : $oldCurrency = 'AUD'; $newCurrency = 'USD'; $priceHelper = $objectManager->...
0
votes
1answer
705 views

Magento 2 : Currency change frontend event

I want to update the quote item price on switching the currency from the frontend. Is there any event to track currency switch option and give me the previous currency and requested currency?
1
vote
3answers
1k views

How to use paypal for other currency in Magento2

I have magento2 with base currency NPR I want to use Paypal as another payment option. where as papal doesn't support NPR i want to pay it in droller. for that I have added "NPR" in $...
10
votes
2answers
1k views

How to get product's price in all allowed currencies?

I have a setup with two store views. The first store view has base and the only one currency set to USD. The second one has 2 allowed currencies - USD and EUR. EUR is the default displayed one, USD ...
0
votes
1answer
94 views

magento 2 i want to add some new Currency

How to add new Currency in Magento 2 in backend I saw some currency is there more than that I want to add new MYR, SGD, LKR
0
votes
1answer
37 views

Format for integers in my Account magento

As I show the values of the purchase orders without the decimals I want you to show them this way $ 23,747
5
votes
1answer
2k views

convert amount form one currency to another currency in magento 2

I need to convert amount from one currency to another currency in magento 2 not from store base currency $priceCurrencyObject = $objectManager->get('Magento\Framework\Pricing\...
0
votes
1answer
792 views

Get currency rate by currency code

I need to currency rate by currency code in magento 2. $currency = $objectManager->get('Magento\Framework\Pricing\PriceCurrencyInterface'); $currencySymbol = $currency->getRate('USD'); I ...
0
votes
1answer
669 views

Magento 2 Currency Setup - Allowed Currencies programmatically

How to set 'Allowed Currencies' for each store programmatically in Magento2. Options in Admin Panel are placed here: System -> Configuration -> General -> Currency Setup Also I'm not sure ...
0
votes
0answers
743 views

magento 2 after adding multiple currency, sales order in admin showing two currencies

I have two currencies set - Ruppes and USD. Ruppes is my base currency. I am facing problem is - USD orders in admin sales shows both currencies as shown in below image: What can be done to show ...
1
vote
1answer
388 views

base currency not working

I have set up three websites and allocated different base currencies. However, it it not appearing correctly on the frontend. Also on the catalog page of admin, I cannot input in different base ...
5
votes
1answer
80 views

Magento 2 How can I add unit of the data in the ui form field?

I need to indicate the user that the “unit” of the data to be input, such as currency. I am using ui component form. How can I achieve it? Here is my code <field name="total"> <...
4
votes
4answers
1k views

How to get current currency symbol in multi-currencies magento 2

I am trying to show item price with symbol in override email template on order create, and my site have euro and $ both currency. Is there any way to get current currency symbol, Please share if have....