Magento2: Cart with discount code higher then the amount in cart shows -€ NaN,N as grand totalCompletely incorrect tax calculationSub Total - Calculated with discountHow to get total discount amount of Coupon Code for all items in the cartProgramatically applied discount to cart not working with currency swticherGrand total is zero with items in the cartMagento 1.9.2.2 - Grand Total less than SubtotalOrder Total on Cart not showing price with TAXMagento 2 - custom price can not add to subtotal and grand total after add to cartUpdate Grand Total based on Discount/Pointsget grand total with shipping & shipping (incl. tax) in custom controller

Isn't the word "experience" wrongly used in this context?

Have any astronauts/cosmonauts died in space?

Did Nintendo change its mind about 68000 SNES?

Gauss brackets with double vertical lines

Jem'Hadar, something strange about their life expectancy

When should a starting writer get his own webpage?

Writing in a Christian voice

What kind of footwear is suitable for walking in micro gravity environment?

How old is Nick Fury?

Is VPN a layer 3 concept?

Single word to change groups

PTIJ: Which Dr. Seuss books should one obtain?

Error in master's thesis, I do not know what to do

Should I be concerned about student access to a test bank?

UK Tourist Visa- Enquiry

Do people actually use the word "kaputt" in conversation?

What (if any) is the reason to buy in small local stores?

Would this string work as string?

Do I need to convey a moral for each of my blog post?

What is the tangent at a sharp point on a curve?

Why I don't get the wanted width of tcbox?

Why is "la Gestapo" feminine?

"Marked down as someone wanting to sell shares." What does that mean?

How to find the largest number(s) in a list of elements, possibly non-unique?



Magento2: Cart with discount code higher then the amount in cart shows -€ NaN,N as grand total


Completely incorrect tax calculationSub Total - Calculated with discountHow to get total discount amount of Coupon Code for all items in the cartProgramatically applied discount to cart not working with currency swticherGrand total is zero with items in the cartMagento 1.9.2.2 - Grand Total less than SubtotalOrder Total on Cart not showing price with TAXMagento 2 - custom price can not add to subtotal and grand total after add to cartUpdate Grand Total based on Discount/Pointsget grand total with shipping & shipping (incl. tax) in custom controller













0















We added 1 product to cart with the price of 10.99
Tax applied is 5.99
when applied a discount code of 50 euro
the grand total incl tax = € NaN,N



Can anyone suggest what could be the issue?










share|improve this question


























    0















    We added 1 product to cart with the price of 10.99
    Tax applied is 5.99
    when applied a discount code of 50 euro
    the grand total incl tax = € NaN,N



    Can anyone suggest what could be the issue?










    share|improve this question
























      0












      0








      0








      We added 1 product to cart with the price of 10.99
      Tax applied is 5.99
      when applied a discount code of 50 euro
      the grand total incl tax = € NaN,N



      Can anyone suggest what could be the issue?










      share|improve this question














      We added 1 product to cart with the price of 10.99
      Tax applied is 5.99
      when applied a discount code of 50 euro
      the grand total incl tax = € NaN,N



      Can anyone suggest what could be the issue?







      magento2 checkout cart






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 1 '18 at 15:25









      DeepsDeeps

      442318




      442318




















          2 Answers
          2






          active

          oldest

          votes


















          0














          I've fixed this issue by overriding below js file in theme and updated getValue() function in it:
          Magento_Tax/web/js/view/checkout/summary/grand-total.js



          Before:



          getValue: function() 
          var price = 0;
          if (this.totals())
          price = totals.getSegment('grand_total').value;

          return this.getFormattedPrice(price);
          ,


          After:



          getValue: function() 
          var price = 0;
          if (this.totals())
          price = parseFloat(totals.getSegment('grand_total').value).toFixed(2);

          return this.getFormattedPrice(price);
          ,


          parseFloat just added to make sure it should return float value.
          Hope this helps someone.
          Thanks!






          share|improve this answer






























            0














            This issue is already reported in GitHub https://github.com/magento/magento2/issues/18027



            The issue got fixed in version 2.2.8





            share






















              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%2f211919%2fmagento2-cart-with-discount-code-higher-then-the-amount-in-cart-shows-%25e2%2582%25ac-nan-n%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              I've fixed this issue by overriding below js file in theme and updated getValue() function in it:
              Magento_Tax/web/js/view/checkout/summary/grand-total.js



              Before:



              getValue: function() 
              var price = 0;
              if (this.totals())
              price = totals.getSegment('grand_total').value;

              return this.getFormattedPrice(price);
              ,


              After:



              getValue: function() 
              var price = 0;
              if (this.totals())
              price = parseFloat(totals.getSegment('grand_total').value).toFixed(2);

              return this.getFormattedPrice(price);
              ,


              parseFloat just added to make sure it should return float value.
              Hope this helps someone.
              Thanks!






              share|improve this answer



























                0














                I've fixed this issue by overriding below js file in theme and updated getValue() function in it:
                Magento_Tax/web/js/view/checkout/summary/grand-total.js



                Before:



                getValue: function() 
                var price = 0;
                if (this.totals())
                price = totals.getSegment('grand_total').value;

                return this.getFormattedPrice(price);
                ,


                After:



                getValue: function() 
                var price = 0;
                if (this.totals())
                price = parseFloat(totals.getSegment('grand_total').value).toFixed(2);

                return this.getFormattedPrice(price);
                ,


                parseFloat just added to make sure it should return float value.
                Hope this helps someone.
                Thanks!






                share|improve this answer

























                  0












                  0








                  0







                  I've fixed this issue by overriding below js file in theme and updated getValue() function in it:
                  Magento_Tax/web/js/view/checkout/summary/grand-total.js



                  Before:



                  getValue: function() 
                  var price = 0;
                  if (this.totals())
                  price = totals.getSegment('grand_total').value;

                  return this.getFormattedPrice(price);
                  ,


                  After:



                  getValue: function() 
                  var price = 0;
                  if (this.totals())
                  price = parseFloat(totals.getSegment('grand_total').value).toFixed(2);

                  return this.getFormattedPrice(price);
                  ,


                  parseFloat just added to make sure it should return float value.
                  Hope this helps someone.
                  Thanks!






                  share|improve this answer













                  I've fixed this issue by overriding below js file in theme and updated getValue() function in it:
                  Magento_Tax/web/js/view/checkout/summary/grand-total.js



                  Before:



                  getValue: function() 
                  var price = 0;
                  if (this.totals())
                  price = totals.getSegment('grand_total').value;

                  return this.getFormattedPrice(price);
                  ,


                  After:



                  getValue: function() 
                  var price = 0;
                  if (this.totals())
                  price = parseFloat(totals.getSegment('grand_total').value).toFixed(2);

                  return this.getFormattedPrice(price);
                  ,


                  parseFloat just added to make sure it should return float value.
                  Hope this helps someone.
                  Thanks!







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 2 '18 at 5:47









                  DeepsDeeps

                  442318




                  442318























                      0














                      This issue is already reported in GitHub https://github.com/magento/magento2/issues/18027



                      The issue got fixed in version 2.2.8





                      share



























                        0














                        This issue is already reported in GitHub https://github.com/magento/magento2/issues/18027



                        The issue got fixed in version 2.2.8





                        share

























                          0












                          0








                          0







                          This issue is already reported in GitHub https://github.com/magento/magento2/issues/18027



                          The issue got fixed in version 2.2.8





                          share













                          This issue is already reported in GitHub https://github.com/magento/magento2/issues/18027



                          The issue got fixed in version 2.2.8






                          share











                          share


                          share










                          answered 6 mins ago









                          Renu MishraRenu Mishra

                          314




                          314



























                              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%2f211919%2fmagento2-cart-with-discount-code-higher-then-the-amount-in-cart-shows-%25e2%2582%25ac-nan-n%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

                              Nidaros erkebispedøme

                              Birsay

                              Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?