How to get round Price Value in Grand Total Magento 1.9.2?Grand total in cart priceHow can I get discount amount and grand total amount in mini cart ? (Magento 1.9)How to edit or hide magento grand total section?Creating reorder giving grand total in double priceHow to get discount value round up in magentoRound Off grand totalhow to get Grand Total of Wishlish Items in magento?Round a total tax priceHow to add updated shipping cost in grand totalHow can i set custom price on grand total and subtotal on cart item update?

Why is the Vasa Museum in Stockholm so Popular?

How do I find version of Intel graphics card drivers installed?

In a KP-K endgame, if the enemy king is in front of the pawn, is it always a draw?

Why do my fried eggs start browning very fast?

Do moonless nights cause dim light to become darkness, and bright light (e.g. from torches) to become dim light?

Why adjustbox needs a tweak of raise=-0.3ex with enumitem?

Which honorific is correct, oshumi or goshumi?

Astable 555 circuit not oscillating

Why wasn't interlaced CRT scanning done back and forth?

Pronouns when writing from the point of view of a robot

Why did the United States not resort to nuclear weapons in Vietnam?

Representation of the concatenation at the type level

How to call made-up data?

What license to choose for my PhD thesis?

On the expression "sun-down"

How does Rust's 128-bit integer `i128` work on a 64-bit system?

Speaker impedance: rewiring four 8 Ω speakers for use with 8 Ω amp output

(7 of 11: Fillomino) What is Pyramid Cult's Favorite Shape?

C# TCP server/client class

How were x-ray diffraction patterns deciphered before computers?

Is law enforcement responsible for damages made by a search warrant?

Lower bound for the number of lattice points on high dimensional spheres

Is the first page of Novel really that important?

Can there be multiple energy eigenstates corresponding to the same eigenvalue of a Hamiltonian (Pauli-X)?



How to get round Price Value in Grand Total Magento 1.9.2?


Grand total in cart priceHow can I get discount amount and grand total amount in mini cart ? (Magento 1.9)How to edit or hide magento grand total section?Creating reorder giving grand total in double priceHow to get discount value round up in magentoRound Off grand totalhow to get Grand Total of Wishlish Items in magento?Round a total tax priceHow to add updated shipping cost in grand totalHow can i set custom price on grand total and subtotal on cart item update?






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








3















enter image description here



How can I achieve round price value in Grand Total?










share|improve this question


























  • Thats weird, i can see 4 magento version tags.. which version you are using?

    – Lalit838
    Jun 30 '17 at 7:38











  • it's mention above

    – Aks
    Jun 30 '17 at 8:01











  • Do you just need rounded price for grand total or for all the prices?

    – Lalit838
    Jun 30 '17 at 8:26











  • For price conversion you can use this module this module Allows you to manage the price display in an easy way: to show a custom currency symbol, the number of decimals, the symbol's position, and so on.

    – Lalit838
    Jun 30 '17 at 8:31











  • @Lalit838 - I have applied tax class on some products. I need rounded price for grand total because product prices are not in decimal value.

    – Aks
    Jun 30 '17 at 17:02

















3















enter image description here



How can I achieve round price value in Grand Total?










share|improve this question


























  • Thats weird, i can see 4 magento version tags.. which version you are using?

    – Lalit838
    Jun 30 '17 at 7:38











  • it's mention above

    – Aks
    Jun 30 '17 at 8:01











  • Do you just need rounded price for grand total or for all the prices?

    – Lalit838
    Jun 30 '17 at 8:26











  • For price conversion you can use this module this module Allows you to manage the price display in an easy way: to show a custom currency symbol, the number of decimals, the symbol's position, and so on.

    – Lalit838
    Jun 30 '17 at 8:31











  • @Lalit838 - I have applied tax class on some products. I need rounded price for grand total because product prices are not in decimal value.

    – Aks
    Jun 30 '17 at 17:02













3












3








3


0






enter image description here



How can I achieve round price value in Grand Total?










share|improve this question
















enter image description here



How can I achieve round price value in Grand Total?







magento-1.9 database






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 30 '17 at 10:09









Moose

5,7556 gold badges39 silver badges81 bronze badges




5,7556 gold badges39 silver badges81 bronze badges










asked Jun 30 '17 at 4:38









AksAks

5313 bronze badges




5313 bronze badges















  • Thats weird, i can see 4 magento version tags.. which version you are using?

    – Lalit838
    Jun 30 '17 at 7:38











  • it's mention above

    – Aks
    Jun 30 '17 at 8:01











  • Do you just need rounded price for grand total or for all the prices?

    – Lalit838
    Jun 30 '17 at 8:26











  • For price conversion you can use this module this module Allows you to manage the price display in an easy way: to show a custom currency symbol, the number of decimals, the symbol's position, and so on.

    – Lalit838
    Jun 30 '17 at 8:31











  • @Lalit838 - I have applied tax class on some products. I need rounded price for grand total because product prices are not in decimal value.

    – Aks
    Jun 30 '17 at 17:02

















  • Thats weird, i can see 4 magento version tags.. which version you are using?

    – Lalit838
    Jun 30 '17 at 7:38











  • it's mention above

    – Aks
    Jun 30 '17 at 8:01











  • Do you just need rounded price for grand total or for all the prices?

    – Lalit838
    Jun 30 '17 at 8:26











  • For price conversion you can use this module this module Allows you to manage the price display in an easy way: to show a custom currency symbol, the number of decimals, the symbol's position, and so on.

    – Lalit838
    Jun 30 '17 at 8:31











  • @Lalit838 - I have applied tax class on some products. I need rounded price for grand total because product prices are not in decimal value.

    – Aks
    Jun 30 '17 at 17:02
















Thats weird, i can see 4 magento version tags.. which version you are using?

– Lalit838
Jun 30 '17 at 7:38





Thats weird, i can see 4 magento version tags.. which version you are using?

– Lalit838
Jun 30 '17 at 7:38













it's mention above

– Aks
Jun 30 '17 at 8:01





it's mention above

– Aks
Jun 30 '17 at 8:01













Do you just need rounded price for grand total or for all the prices?

– Lalit838
Jun 30 '17 at 8:26





Do you just need rounded price for grand total or for all the prices?

– Lalit838
Jun 30 '17 at 8:26













For price conversion you can use this module this module Allows you to manage the price display in an easy way: to show a custom currency symbol, the number of decimals, the symbol's position, and so on.

– Lalit838
Jun 30 '17 at 8:31





For price conversion you can use this module this module Allows you to manage the price display in an easy way: to show a custom currency symbol, the number of decimals, the symbol's position, and so on.

– Lalit838
Jun 30 '17 at 8:31













@Lalit838 - I have applied tax class on some products. I need rounded price for grand total because product prices are not in decimal value.

– Aks
Jun 30 '17 at 17:02





@Lalit838 - I have applied tax class on some products. I need rounded price for grand total because product prices are not in decimal value.

– Aks
Jun 30 '17 at 17:02










1 Answer
1






active

oldest

votes


















0














check this file from core




Mage_Sales_Model_Quote_Address_Total_Grand




/**
* Collect grand total address amount
*
* @param Mage_Sales_Model_Quote_Address $address
* @return Mage_Sales_Model_Quote_Address_Total_Grand
*/
public function collect(Mage_Sales_Model_Quote_Address $address)

$grandTotal = $address->getGrandTotal();
$baseGrandTotal = $address->getBaseGrandTotal();

$store = $address->getQuote()->getStore();
$totals = array_sum($address->getAllTotalAmounts());
$totals = $store->roundPrice($totals);
$baseTotals = array_sum($address->getAllBaseTotalAmounts());
$baseTotals = $store->roundPrice($baseTotals);

$address->setGrandTotal(round($grandTotal+$totals)); // round here
$address->setBaseGrandTotal(round($baseGrandTotal+$baseTotals)); // round here
return $this;


/**
* Add grand total information to address
*
* @param Mage_Sales_Model_Quote_Address $address
* @return Mage_Sales_Model_Quote_Address_Total_Grand
*/
public function fetch(Mage_Sales_Model_Quote_Address $address)

$address->addTotal(array(
'code' => $this->getCode(),
'title' => Mage::helper('sales')->__('Grand Total'),
'value' => $address->getGrandTotal(),
'area' => 'footer',
));
return $this;






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%2f181427%2fhow-to-get-round-price-value-in-grand-total-magento-1-9-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









    0














    check this file from core




    Mage_Sales_Model_Quote_Address_Total_Grand




    /**
    * Collect grand total address amount
    *
    * @param Mage_Sales_Model_Quote_Address $address
    * @return Mage_Sales_Model_Quote_Address_Total_Grand
    */
    public function collect(Mage_Sales_Model_Quote_Address $address)

    $grandTotal = $address->getGrandTotal();
    $baseGrandTotal = $address->getBaseGrandTotal();

    $store = $address->getQuote()->getStore();
    $totals = array_sum($address->getAllTotalAmounts());
    $totals = $store->roundPrice($totals);
    $baseTotals = array_sum($address->getAllBaseTotalAmounts());
    $baseTotals = $store->roundPrice($baseTotals);

    $address->setGrandTotal(round($grandTotal+$totals)); // round here
    $address->setBaseGrandTotal(round($baseGrandTotal+$baseTotals)); // round here
    return $this;


    /**
    * Add grand total information to address
    *
    * @param Mage_Sales_Model_Quote_Address $address
    * @return Mage_Sales_Model_Quote_Address_Total_Grand
    */
    public function fetch(Mage_Sales_Model_Quote_Address $address)

    $address->addTotal(array(
    'code' => $this->getCode(),
    'title' => Mage::helper('sales')->__('Grand Total'),
    'value' => $address->getGrandTotal(),
    'area' => 'footer',
    ));
    return $this;






    share|improve this answer





























      0














      check this file from core




      Mage_Sales_Model_Quote_Address_Total_Grand




      /**
      * Collect grand total address amount
      *
      * @param Mage_Sales_Model_Quote_Address $address
      * @return Mage_Sales_Model_Quote_Address_Total_Grand
      */
      public function collect(Mage_Sales_Model_Quote_Address $address)

      $grandTotal = $address->getGrandTotal();
      $baseGrandTotal = $address->getBaseGrandTotal();

      $store = $address->getQuote()->getStore();
      $totals = array_sum($address->getAllTotalAmounts());
      $totals = $store->roundPrice($totals);
      $baseTotals = array_sum($address->getAllBaseTotalAmounts());
      $baseTotals = $store->roundPrice($baseTotals);

      $address->setGrandTotal(round($grandTotal+$totals)); // round here
      $address->setBaseGrandTotal(round($baseGrandTotal+$baseTotals)); // round here
      return $this;


      /**
      * Add grand total information to address
      *
      * @param Mage_Sales_Model_Quote_Address $address
      * @return Mage_Sales_Model_Quote_Address_Total_Grand
      */
      public function fetch(Mage_Sales_Model_Quote_Address $address)

      $address->addTotal(array(
      'code' => $this->getCode(),
      'title' => Mage::helper('sales')->__('Grand Total'),
      'value' => $address->getGrandTotal(),
      'area' => 'footer',
      ));
      return $this;






      share|improve this answer



























        0












        0








        0







        check this file from core




        Mage_Sales_Model_Quote_Address_Total_Grand




        /**
        * Collect grand total address amount
        *
        * @param Mage_Sales_Model_Quote_Address $address
        * @return Mage_Sales_Model_Quote_Address_Total_Grand
        */
        public function collect(Mage_Sales_Model_Quote_Address $address)

        $grandTotal = $address->getGrandTotal();
        $baseGrandTotal = $address->getBaseGrandTotal();

        $store = $address->getQuote()->getStore();
        $totals = array_sum($address->getAllTotalAmounts());
        $totals = $store->roundPrice($totals);
        $baseTotals = array_sum($address->getAllBaseTotalAmounts());
        $baseTotals = $store->roundPrice($baseTotals);

        $address->setGrandTotal(round($grandTotal+$totals)); // round here
        $address->setBaseGrandTotal(round($baseGrandTotal+$baseTotals)); // round here
        return $this;


        /**
        * Add grand total information to address
        *
        * @param Mage_Sales_Model_Quote_Address $address
        * @return Mage_Sales_Model_Quote_Address_Total_Grand
        */
        public function fetch(Mage_Sales_Model_Quote_Address $address)

        $address->addTotal(array(
        'code' => $this->getCode(),
        'title' => Mage::helper('sales')->__('Grand Total'),
        'value' => $address->getGrandTotal(),
        'area' => 'footer',
        ));
        return $this;






        share|improve this answer













        check this file from core




        Mage_Sales_Model_Quote_Address_Total_Grand




        /**
        * Collect grand total address amount
        *
        * @param Mage_Sales_Model_Quote_Address $address
        * @return Mage_Sales_Model_Quote_Address_Total_Grand
        */
        public function collect(Mage_Sales_Model_Quote_Address $address)

        $grandTotal = $address->getGrandTotal();
        $baseGrandTotal = $address->getBaseGrandTotal();

        $store = $address->getQuote()->getStore();
        $totals = array_sum($address->getAllTotalAmounts());
        $totals = $store->roundPrice($totals);
        $baseTotals = array_sum($address->getAllBaseTotalAmounts());
        $baseTotals = $store->roundPrice($baseTotals);

        $address->setGrandTotal(round($grandTotal+$totals)); // round here
        $address->setBaseGrandTotal(round($baseGrandTotal+$baseTotals)); // round here
        return $this;


        /**
        * Add grand total information to address
        *
        * @param Mage_Sales_Model_Quote_Address $address
        * @return Mage_Sales_Model_Quote_Address_Total_Grand
        */
        public function fetch(Mage_Sales_Model_Quote_Address $address)

        $address->addTotal(array(
        'code' => $this->getCode(),
        'title' => Mage::helper('sales')->__('Grand Total'),
        'value' => $address->getGrandTotal(),
        'area' => 'footer',
        ));
        return $this;







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 30 '17 at 6:18









        PriyankPriyank

        5,7424 gold badges24 silver badges55 bronze badges




        5,7424 gold badges24 silver badges55 bronze badges






























            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%2f181427%2fhow-to-get-round-price-value-in-grand-total-magento-1-9-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

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form