how to get the grand total in magento1.9 in payment information step of onepage checkout updated including shipping charge, taxGrand total update on billing information save in onepage checkout ---MagentoMagento Grand Total without taxes in 1.9 with PHP7How to display shipping estimate and auto add this to grand total on cart page?How to get Shipping method name and shipping price in onepage checkoutUpdate Grand Total based on Discount/PointsHow to add updated shipping cost in grand totalWrong Tax calculationMagento 2 - Wrong Order Total , Summary Sidebar not update the totalMagento 2: How can I update tax and total programmatically on checkout?Magento 2 Collect Total In Payment Step

Derivative of an interpolated function

Why does the frost depth increase when the surface temperature warms up?

If the Dominion rule using their Jem'Hadar troops, why is their life expectancy so low?

New Order #2: Turn My Way

Is there a page on which I can view all Sitecore jobs running?

Connection Between Knot Theory and Number Theory

What do the positive and negative (+/-) transmit and receive pins mean on Ethernet cables?

Is divisi notation needed for brass or woodwind in an orchestra?

Weird lines in Microsoft Word

Center page as a whole without centering each element individually

Find a point shared by maximum segments

Do native speakers use "ultima" and "proxima" frequently in spoken English?

PTIJ: Which Dr. Seuss books should one obtain?

How do you justify more code being written by following clean code practices?

Travelling in US for more than 90 days

How would a solely written language work mechanically

What is the purpose of using a decision tree?

Friend wants my recommendation but I don't want to give it to him

Are hand made posters acceptable in Academia?

Why didn’t Eve recognize the little cockroach as a living organism?

Offset in split text content

A seasonal riddle

Pre-Employment Background Check With Consent For Future Checks

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



how to get the grand total in magento1.9 in payment information step of onepage checkout updated including shipping charge, tax


Grand total update on billing information save in onepage checkout ---MagentoMagento Grand Total without taxes in 1.9 with PHP7How to display shipping estimate and auto add this to grand total on cart page?How to get Shipping method name and shipping price in onepage checkoutUpdate Grand Total based on Discount/PointsHow to add updated shipping cost in grand totalWrong Tax calculationMagento 2 - Wrong Order Total , Summary Sidebar not update the totalMagento 2: How can I update tax and total programmatically on checkout?Magento 2 Collect Total In Payment Step













5















In onepage checkout, I am trying to get grand total but it is not updated based on shipping charges, taxes applied instead it is only showing product cost..
After selecting the shipping method and reloading the page is updating grand total correctly but I wanted to update grand total in the step payment information.
Can anybody please help me in this?










share|improve this question
























  • Can you please show ur code?

    – Amit Bera
    Dec 3 '15 at 9:21















5















In onepage checkout, I am trying to get grand total but it is not updated based on shipping charges, taxes applied instead it is only showing product cost..
After selecting the shipping method and reloading the page is updating grand total correctly but I wanted to update grand total in the step payment information.
Can anybody please help me in this?










share|improve this question
























  • Can you please show ur code?

    – Amit Bera
    Dec 3 '15 at 9:21













5












5








5


1






In onepage checkout, I am trying to get grand total but it is not updated based on shipping charges, taxes applied instead it is only showing product cost..
After selecting the shipping method and reloading the page is updating grand total correctly but I wanted to update grand total in the step payment information.
Can anybody please help me in this?










share|improve this question
















In onepage checkout, I am trying to get grand total but it is not updated based on shipping charges, taxes applied instead it is only showing product cost..
After selecting the shipping method and reloading the page is updating grand total correctly but I wanted to update grand total in the step payment information.
Can anybody please help me in this?







magento-1.9 totals grand-total






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 16 hours ago









Shoaib Munir

2,1301828




2,1301828










asked Dec 3 '15 at 9:19









Anurag KhandelwalAnurag Khandelwal

3451417




3451417












  • Can you please show ur code?

    – Amit Bera
    Dec 3 '15 at 9:21

















  • Can you please show ur code?

    – Amit Bera
    Dec 3 '15 at 9:21
















Can you please show ur code?

– Amit Bera
Dec 3 '15 at 9:21





Can you please show ur code?

– Amit Bera
Dec 3 '15 at 9:21










2 Answers
2






active

oldest

votes


















7














Try



$quote = Mage::getModel('checkout/session')->getQuote();
$quoteData= $quote->getData();
$grandTotal=$quoteData['grand_total'];


OR



print_r(Mage::helper('checkout')->getQuote()->getData());





share|improve this answer

























  • I tried this only but it will not give you updated grand total, it excludes shipping charges, taxes, etc in the step of payment information.. And if I reload the page at the very moment, then it updates the grand total. Is there any way so that while moving to step payment information, it refreshes the grand total to calculate accordingly

    – Anurag Khandelwal
    Dec 3 '15 at 9:32












  • edited my answer try that also.

    – Akhilesh Patel
    Dec 3 '15 at 9:38












  • Thanks a lot man, it worked!! print_r(Mage::helper('checkout')->getQuote()->getData());

    – Anurag Khandelwal
    Dec 3 '15 at 9:48












  • Why getting the full data array? What about $quote->getGrandTotal() or $quote->getData('grand_total')?

    – 7ochem
    Dec 3 '15 at 9:49











  • yes you can use $quote->getGrandTotal()

    – Akhilesh Patel
    Dec 3 '15 at 9:50


















4














You can get the grand total by using this:



$grandTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();





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%2f92469%2fhow-to-get-the-grand-total-in-magento1-9-in-payment-information-step-of-onepage%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









    7














    Try



    $quote = Mage::getModel('checkout/session')->getQuote();
    $quoteData= $quote->getData();
    $grandTotal=$quoteData['grand_total'];


    OR



    print_r(Mage::helper('checkout')->getQuote()->getData());





    share|improve this answer

























    • I tried this only but it will not give you updated grand total, it excludes shipping charges, taxes, etc in the step of payment information.. And if I reload the page at the very moment, then it updates the grand total. Is there any way so that while moving to step payment information, it refreshes the grand total to calculate accordingly

      – Anurag Khandelwal
      Dec 3 '15 at 9:32












    • edited my answer try that also.

      – Akhilesh Patel
      Dec 3 '15 at 9:38












    • Thanks a lot man, it worked!! print_r(Mage::helper('checkout')->getQuote()->getData());

      – Anurag Khandelwal
      Dec 3 '15 at 9:48












    • Why getting the full data array? What about $quote->getGrandTotal() or $quote->getData('grand_total')?

      – 7ochem
      Dec 3 '15 at 9:49











    • yes you can use $quote->getGrandTotal()

      – Akhilesh Patel
      Dec 3 '15 at 9:50















    7














    Try



    $quote = Mage::getModel('checkout/session')->getQuote();
    $quoteData= $quote->getData();
    $grandTotal=$quoteData['grand_total'];


    OR



    print_r(Mage::helper('checkout')->getQuote()->getData());





    share|improve this answer

























    • I tried this only but it will not give you updated grand total, it excludes shipping charges, taxes, etc in the step of payment information.. And if I reload the page at the very moment, then it updates the grand total. Is there any way so that while moving to step payment information, it refreshes the grand total to calculate accordingly

      – Anurag Khandelwal
      Dec 3 '15 at 9:32












    • edited my answer try that also.

      – Akhilesh Patel
      Dec 3 '15 at 9:38












    • Thanks a lot man, it worked!! print_r(Mage::helper('checkout')->getQuote()->getData());

      – Anurag Khandelwal
      Dec 3 '15 at 9:48












    • Why getting the full data array? What about $quote->getGrandTotal() or $quote->getData('grand_total')?

      – 7ochem
      Dec 3 '15 at 9:49











    • yes you can use $quote->getGrandTotal()

      – Akhilesh Patel
      Dec 3 '15 at 9:50













    7












    7








    7







    Try



    $quote = Mage::getModel('checkout/session')->getQuote();
    $quoteData= $quote->getData();
    $grandTotal=$quoteData['grand_total'];


    OR



    print_r(Mage::helper('checkout')->getQuote()->getData());





    share|improve this answer















    Try



    $quote = Mage::getModel('checkout/session')->getQuote();
    $quoteData= $quote->getData();
    $grandTotal=$quoteData['grand_total'];


    OR



    print_r(Mage::helper('checkout')->getQuote()->getData());






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 3 '15 at 9:38

























    answered Dec 3 '15 at 9:30









    Akhilesh PatelAkhilesh Patel

    4,15921229




    4,15921229












    • I tried this only but it will not give you updated grand total, it excludes shipping charges, taxes, etc in the step of payment information.. And if I reload the page at the very moment, then it updates the grand total. Is there any way so that while moving to step payment information, it refreshes the grand total to calculate accordingly

      – Anurag Khandelwal
      Dec 3 '15 at 9:32












    • edited my answer try that also.

      – Akhilesh Patel
      Dec 3 '15 at 9:38












    • Thanks a lot man, it worked!! print_r(Mage::helper('checkout')->getQuote()->getData());

      – Anurag Khandelwal
      Dec 3 '15 at 9:48












    • Why getting the full data array? What about $quote->getGrandTotal() or $quote->getData('grand_total')?

      – 7ochem
      Dec 3 '15 at 9:49











    • yes you can use $quote->getGrandTotal()

      – Akhilesh Patel
      Dec 3 '15 at 9:50

















    • I tried this only but it will not give you updated grand total, it excludes shipping charges, taxes, etc in the step of payment information.. And if I reload the page at the very moment, then it updates the grand total. Is there any way so that while moving to step payment information, it refreshes the grand total to calculate accordingly

      – Anurag Khandelwal
      Dec 3 '15 at 9:32












    • edited my answer try that also.

      – Akhilesh Patel
      Dec 3 '15 at 9:38












    • Thanks a lot man, it worked!! print_r(Mage::helper('checkout')->getQuote()->getData());

      – Anurag Khandelwal
      Dec 3 '15 at 9:48












    • Why getting the full data array? What about $quote->getGrandTotal() or $quote->getData('grand_total')?

      – 7ochem
      Dec 3 '15 at 9:49











    • yes you can use $quote->getGrandTotal()

      – Akhilesh Patel
      Dec 3 '15 at 9:50
















    I tried this only but it will not give you updated grand total, it excludes shipping charges, taxes, etc in the step of payment information.. And if I reload the page at the very moment, then it updates the grand total. Is there any way so that while moving to step payment information, it refreshes the grand total to calculate accordingly

    – Anurag Khandelwal
    Dec 3 '15 at 9:32






    I tried this only but it will not give you updated grand total, it excludes shipping charges, taxes, etc in the step of payment information.. And if I reload the page at the very moment, then it updates the grand total. Is there any way so that while moving to step payment information, it refreshes the grand total to calculate accordingly

    – Anurag Khandelwal
    Dec 3 '15 at 9:32














    edited my answer try that also.

    – Akhilesh Patel
    Dec 3 '15 at 9:38






    edited my answer try that also.

    – Akhilesh Patel
    Dec 3 '15 at 9:38














    Thanks a lot man, it worked!! print_r(Mage::helper('checkout')->getQuote()->getData());

    – Anurag Khandelwal
    Dec 3 '15 at 9:48






    Thanks a lot man, it worked!! print_r(Mage::helper('checkout')->getQuote()->getData());

    – Anurag Khandelwal
    Dec 3 '15 at 9:48














    Why getting the full data array? What about $quote->getGrandTotal() or $quote->getData('grand_total')?

    – 7ochem
    Dec 3 '15 at 9:49





    Why getting the full data array? What about $quote->getGrandTotal() or $quote->getData('grand_total')?

    – 7ochem
    Dec 3 '15 at 9:49













    yes you can use $quote->getGrandTotal()

    – Akhilesh Patel
    Dec 3 '15 at 9:50





    yes you can use $quote->getGrandTotal()

    – Akhilesh Patel
    Dec 3 '15 at 9:50













    4














    You can get the grand total by using this:



    $grandTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();





    share|improve this answer





























      4














      You can get the grand total by using this:



      $grandTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();





      share|improve this answer



























        4












        4








        4







        You can get the grand total by using this:



        $grandTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();





        share|improve this answer















        You can get the grand total by using this:



        $grandTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 8 '17 at 6:59









        Teja Bhagavan Kollepara

        3,00641949




        3,00641949










        answered Feb 8 '17 at 6:42









        Shoaib MunirShoaib Munir

        2,1301828




        2,1301828



























            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%2f92469%2fhow-to-get-the-grand-total-in-magento1-9-in-payment-information-step-of-onepage%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

            Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

            Magento2 - How to hide price filter only in specific categories?Multiselect price filter attribute in layered navigationhide only some categories from layered navigation in magentoRemove Price Filter on certain categoriescustomize layered price filter?Hide Price for a particular customer groupPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 how to hide attribute at Layered navigation?Magento 2. how to hide price only for specific categoriesMagento 2 How can I hide the price and total from cart and checkout summary?Magento2: Can we add navigation layered filter like price filter for other attribute?