Override locale configuration file to customize price formatMagento Multi Website, Store, Currency, Country...

Sometimes a banana is just a banana

Levi-Civita symbol: 3D matrix

Are paired adjectives bad style?

School performs periodic password audits. Is my password compromised?

Does "legal poaching" exist?

Can throughput exceed the bandwidth of a network

Source for Cremation Specifically Not Jewish

What are all the squawk codes?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

How to lift/raise/repair a segment of concrete slab?

For a 1-action spell, do I need to take a turn to ready the spell before I can cast it, or can I cast it immediately?

What is a term for a function that when called repeatedly, has the same effect as calling once?

Is divide-by-zero a security vulnerability?

Where is the line between being obedient and getting bullied by a boss?

How can I handle a player who pre-plans arguments about my rulings on RAW?

Starting index at zero

Why did John Williams use a march to symbolise Indiana Jones?

Six real numbers so that product of any five is the sixth one

When was drinking water recognized as crucial in marathon running?

Get length of the longest sequence of numbers with the same sign

How to approximate rolls for potions of healing using only d6's?

Arrow between lines in the align environment

Every subset equal to original set?

What is this waxed root vegetable?



Override locale configuration file to customize price format


Magento Multi Website, Store, Currency, Country & Locale Configurationorder price format in custom modulemagento locale date format in transactional emailsMagento 2, with Bosnian Language: bs_Latn_BA, show wrong price format. How to correct?Price Format in Backend and EmailsMagento2 - How to use Magento_Catalog/js/price-box to format price in template?Format price decimal pointsshow currency symbol of SAR in both store viewChanging price formatHow can I add custom currency and display it to backend and frontend?













9















To reliably change the price format(group and decimal symbol) without having to override several classes or write plugins for them, I need to override the en.xml from the Zend library. Changing the XML directly covers several areas at once, like list view, product view or knockoutJS.




vendor/magento/zendframework1/library/Zend/Locale/Data/en.xml




I tried to override it via theme, but that didn't seem to work. Any ideas?










share|improve this question
















bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    9















    To reliably change the price format(group and decimal symbol) without having to override several classes or write plugins for them, I need to override the en.xml from the Zend library. Changing the XML directly covers several areas at once, like list view, product view or knockoutJS.




    vendor/magento/zendframework1/library/Zend/Locale/Data/en.xml




    I tried to override it via theme, but that didn't seem to work. Any ideas?










    share|improve this question
















    bumped to the homepage by Community 14 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      9












      9








      9


      1






      To reliably change the price format(group and decimal symbol) without having to override several classes or write plugins for them, I need to override the en.xml from the Zend library. Changing the XML directly covers several areas at once, like list view, product view or knockoutJS.




      vendor/magento/zendframework1/library/Zend/Locale/Data/en.xml




      I tried to override it via theme, but that didn't seem to work. Any ideas?










      share|improve this question
















      To reliably change the price format(group and decimal symbol) without having to override several classes or write plugins for them, I need to override the en.xml from the Zend library. Changing the XML directly covers several areas at once, like list view, product view or knockoutJS.




      vendor/magento/zendframework1/library/Zend/Locale/Data/en.xml




      I tried to override it via theme, but that didn't seem to work. Any ideas?







      magento2 currency locale format






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 6 '18 at 3:13









      nikin

      766313




      766313










      asked Sep 14 '16 at 12:06









      Gion KochGion Koch

      12117




      12117





      bumped to the homepage by Community 14 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 14 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You can replace this module with your own in composer.json file of your Magento 2 project. And in your module you can fix this price or number format. Small example of replace usage here






          share|improve this answer























            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%2f136297%2foverride-locale-configuration-file-to-customize-price-format%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









            0














            You can replace this module with your own in composer.json file of your Magento 2 project. And in your module you can fix this price or number format. Small example of replace usage here






            share|improve this answer




























              0














              You can replace this module with your own in composer.json file of your Magento 2 project. And in your module you can fix this price or number format. Small example of replace usage here






              share|improve this answer


























                0












                0








                0







                You can replace this module with your own in composer.json file of your Magento 2 project. And in your module you can fix this price or number format. Small example of replace usage here






                share|improve this answer













                You can replace this module with your own in composer.json file of your Magento 2 project. And in your module you can fix this price or number format. Small example of replace usage here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 30 '18 at 13:21









                Eduard MelnykEduard Melnyk

                211




                211






























                    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%2f136297%2foverride-locale-configuration-file-to-customize-price-format%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

                    “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

                    How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

                    夢乃愛華...