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 totalMagento Tier Price Round Offhow to get Grand Total of Wishlish Items in magento?Round a total tax priceHow to add updated shipping cost in grand total

How to read string as hex number in bash?

Determine voltage drop over 10G resistors with cheap multimeter

Splitting fasta file into smaller files based on header pattern

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

Weird lines in Microsoft Word

Asserting that Atheism and Theism are both faith based positions

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

Can "few" be used as a subject? If so, what is the rule?

How to test the sharpness of a knife?

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

Why is "la Gestapo" feminine?

Single word to change groups

Unfrosted light bulb

Would this string work as string?

How to find the largest number(s) in a list of elements?

Why didn't Héctor fade away after this character died in the movie Coco?

Should a narrator ever describe things based on a characters view instead of fact?

Why doesn't the fusion process of the sun speed up?

Does convergence of polynomials imply that of its coefficients?

Print a physical multiplication table

label a part of commutative diagram

How do researchers send unsolicited emails asking for feedback on their works?

Nested Dynamic SOQL Query

Print last inputted byte



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 totalMagento Tier Price Round Offhow to get Grand Total of Wishlish Items in magento?Round a total tax priceHow to add updated shipping cost in grand total













2















enter image description here



How can I achieve round price value in Grand Total?










share|improve this question
















bumped to the homepage by Community 9 mins ago


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















  • 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















2















enter image description here



How can I achieve round price value in Grand Total?










share|improve this question
















bumped to the homepage by Community 9 mins ago


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















  • 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













2












2








2


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,63053879




5,63053879










asked Jun 30 '17 at 4:38









AksAks

4613




4613





bumped to the homepage by Community 9 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 9 mins ago


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














  • 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,23241950




        5,23241950



























            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

            Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

            Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»

            Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр