how to get proper indian currency format for price in magento 2? Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How can i change Currency in SOAP APII created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?Magento2: How to update the product price programaticallyget Product not work - Magento 2unit test with phpunitMagento 2 After Migration Configurable Product Price blankMagento2 REST API get all customers detailsI am getting this error when I installed algolia search moduleGetting Errors after MySQL database importMsrpPriceCalculator Exception

What is best way to wire a ceiling receptacle in this situation?

Putting class ranking in CV, but against dept guidelines

The test team as an enemy of development? And how can this be avoided?

Should a wizard buy fine inks every time he want to copy spells into his spellbook?

What to do with repeated rejections for phd position

Is it possible for SQL statements to execute concurrently within a single session in SQL Server?

Crossing US/Canada Border for less than 24 hours

Strange behavior of Object.defineProperty() in JavaScript

What does Turing mean by this statement?

How to compare two different files line by line in unix?

Can the Flaming Sphere spell be rammed into multiple Tiny creatures that are in the same 5-foot square?

Google .dev domain strangely redirects to https

How can I set the aperture on my DSLR when it's attached to a telescope instead of a lens?

What initially awakened the Balrog?

What makes a man succeed?

How many morphisms from 1 to 1+1 can there be?

Dynamic filling of a region of a polar plot

Trademark violation for app?

In musical terms, what properties are varied by the human voice to produce different words / syllables?

Is CEO the "profession" with the most psychopaths?

How long can equipment go unused before powering up runs the risk of damage?

Most bit efficient text communication method?

Significance of Cersei's obsession with elephants?

Random body shuffle every night—can we still function?



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



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?How can i change Currency in SOAP APII created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?Magento2: How to update the product price programaticallyget Product not work - Magento 2unit test with phpunitMagento 2 After Migration Configurable Product Price blankMagento2 REST API get all customers detailsI am getting this error when I installed algolia search moduleGetting Errors after MySQL database importMsrpPriceCalculator Exception



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








5















in magento front end its showing ₹7,765,000.00



But we need ₹77,65,000.00



$objectManager = MagentoFrameworkAppObjectManager::getInstance(); // Instance of Object Manager
$priceHelper = $objectManager->create('MagentoFrameworkPricingHelperData'); // Instance of Pricing Helper
$price = 43200000; //Your Price
echo $formattedPrice = $priceHelper->currency($price, true, false);


it should display ₹4,32,00000
but it it displaying ₹43,200,000.00










share|improve this question






















  • do you have multi currency ?

    – Pawan
    Apr 16 at 3:46











  • no,i dont have.

    – sivakumar
    Apr 16 at 6:48

















5















in magento front end its showing ₹7,765,000.00



But we need ₹77,65,000.00



$objectManager = MagentoFrameworkAppObjectManager::getInstance(); // Instance of Object Manager
$priceHelper = $objectManager->create('MagentoFrameworkPricingHelperData'); // Instance of Pricing Helper
$price = 43200000; //Your Price
echo $formattedPrice = $priceHelper->currency($price, true, false);


it should display ₹4,32,00000
but it it displaying ₹43,200,000.00










share|improve this question






















  • do you have multi currency ?

    – Pawan
    Apr 16 at 3:46











  • no,i dont have.

    – sivakumar
    Apr 16 at 6:48













5












5








5








in magento front end its showing ₹7,765,000.00



But we need ₹77,65,000.00



$objectManager = MagentoFrameworkAppObjectManager::getInstance(); // Instance of Object Manager
$priceHelper = $objectManager->create('MagentoFrameworkPricingHelperData'); // Instance of Pricing Helper
$price = 43200000; //Your Price
echo $formattedPrice = $priceHelper->currency($price, true, false);


it should display ₹4,32,00000
but it it displaying ₹43,200,000.00










share|improve this question














in magento front end its showing ₹7,765,000.00



But we need ₹77,65,000.00



$objectManager = MagentoFrameworkAppObjectManager::getInstance(); // Instance of Object Manager
$priceHelper = $objectManager->create('MagentoFrameworkPricingHelperData'); // Instance of Pricing Helper
$price = 43200000; //Your Price
echo $formattedPrice = $priceHelper->currency($price, true, false);


it should display ₹4,32,00000
but it it displaying ₹43,200,000.00







magento2 currency






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 15 at 19:49









sivakumarsivakumar

10142757




10142757












  • do you have multi currency ?

    – Pawan
    Apr 16 at 3:46











  • no,i dont have.

    – sivakumar
    Apr 16 at 6:48

















  • do you have multi currency ?

    – Pawan
    Apr 16 at 3:46











  • no,i dont have.

    – sivakumar
    Apr 16 at 6:48
















do you have multi currency ?

– Pawan
Apr 16 at 3:46





do you have multi currency ?

– Pawan
Apr 16 at 3:46













no,i dont have.

– sivakumar
Apr 16 at 6:48





no,i dont have.

– sivakumar
Apr 16 at 6:48










1 Answer
1






active

oldest

votes


















2














Option I



At the moment you setup Rupee as currency, but it is taking format as per Locale you set in admin.



If you want format as per Indian currency, you need to change your Locale to Hindi (India).



Option II



If you don't want to change Locale, You need to change currencyFormat.



You can find file at:




vendor/magento/zendframework1/library/Zend/Locale/Data




  1. Select file as per your Locale


  2. Search for <currencyFormat


  3. Change format.


Note If you are going with Option II, you need a proper override. Never edit core file






share|improve this answer























  • i choose option 1. its working in listing page. but not in product page

    – sivakumar
    Apr 16 at 6:47











  • Yes, I checked on PDP initial it is showing correct format price, then it is changing! let me check solution.

    – Pawan
    1 hour ago











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270216%2fhow-to-get-proper-indian-currency-format-for-price-in-magento-2%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Option I



At the moment you setup Rupee as currency, but it is taking format as per Locale you set in admin.



If you want format as per Indian currency, you need to change your Locale to Hindi (India).



Option II



If you don't want to change Locale, You need to change currencyFormat.



You can find file at:




vendor/magento/zendframework1/library/Zend/Locale/Data




  1. Select file as per your Locale


  2. Search for <currencyFormat


  3. Change format.


Note If you are going with Option II, you need a proper override. Never edit core file






share|improve this answer























  • i choose option 1. its working in listing page. but not in product page

    – sivakumar
    Apr 16 at 6:47











  • Yes, I checked on PDP initial it is showing correct format price, then it is changing! let me check solution.

    – Pawan
    1 hour ago















2














Option I



At the moment you setup Rupee as currency, but it is taking format as per Locale you set in admin.



If you want format as per Indian currency, you need to change your Locale to Hindi (India).



Option II



If you don't want to change Locale, You need to change currencyFormat.



You can find file at:




vendor/magento/zendframework1/library/Zend/Locale/Data




  1. Select file as per your Locale


  2. Search for <currencyFormat


  3. Change format.


Note If you are going with Option II, you need a proper override. Never edit core file






share|improve this answer























  • i choose option 1. its working in listing page. but not in product page

    – sivakumar
    Apr 16 at 6:47











  • Yes, I checked on PDP initial it is showing correct format price, then it is changing! let me check solution.

    – Pawan
    1 hour ago













2












2








2







Option I



At the moment you setup Rupee as currency, but it is taking format as per Locale you set in admin.



If you want format as per Indian currency, you need to change your Locale to Hindi (India).



Option II



If you don't want to change Locale, You need to change currencyFormat.



You can find file at:




vendor/magento/zendframework1/library/Zend/Locale/Data




  1. Select file as per your Locale


  2. Search for <currencyFormat


  3. Change format.


Note If you are going with Option II, you need a proper override. Never edit core file






share|improve this answer













Option I



At the moment you setup Rupee as currency, but it is taking format as per Locale you set in admin.



If you want format as per Indian currency, you need to change your Locale to Hindi (India).



Option II



If you don't want to change Locale, You need to change currencyFormat.



You can find file at:




vendor/magento/zendframework1/library/Zend/Locale/Data




  1. Select file as per your Locale


  2. Search for <currencyFormat


  3. Change format.


Note If you are going with Option II, you need a proper override. Never edit core file







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 16 at 4:00









PawanPawan

2,2512618




2,2512618












  • i choose option 1. its working in listing page. but not in product page

    – sivakumar
    Apr 16 at 6:47











  • Yes, I checked on PDP initial it is showing correct format price, then it is changing! let me check solution.

    – Pawan
    1 hour ago

















  • i choose option 1. its working in listing page. but not in product page

    – sivakumar
    Apr 16 at 6:47











  • Yes, I checked on PDP initial it is showing correct format price, then it is changing! let me check solution.

    – Pawan
    1 hour ago
















i choose option 1. its working in listing page. but not in product page

– sivakumar
Apr 16 at 6:47





i choose option 1. its working in listing page. but not in product page

– sivakumar
Apr 16 at 6:47













Yes, I checked on PDP initial it is showing correct format price, then it is changing! let me check solution.

– Pawan
1 hour ago





Yes, I checked on PDP initial it is showing correct format price, then it is changing! let me check solution.

– Pawan
1 hour ago

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270216%2fhow-to-get-proper-indian-currency-format-for-price-in-magento-2%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Sum ergo cogito? 1 nng

三茅街道4182Guuntc Dn precexpngmageondP