save big num in magento product price Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Magento dynamic product priceGet price of product in product pageHow to raise the amount of product price digits?Cant save Price for Bundle product magentoGroup price for productWhy my product type in magento 2 don't have the advanced price?Magento Price Change ModuleOnload change product price magentoPrice always empty when create product programaticallyHow to display updated price in bundle product item in product page?

What causes the vertical darker bands in my photo?

How to find all the available tools in macOS terminal?

Single word antonym of "flightless"

Letter Boxed validator

Center align columns in table ignoring minus signs?

Is there a concise way to say "all of the X, one of each"?

Java 8 stream max() function argument type Comparator vs Comparable

Is there a "higher Segal conjecture"?

How widely used is the term Treppenwitz? Is it something that most Germans know?

Gastric acid as a weapon

What do you call a plan that's an alternative plan in case your initial plan fails?

Sorting numerically

Is a manifold-with-boundary with given interior and non-empty boundary essentially unique?

How do I mention the quality of my school without bragging

How do I stop a creek from eroding my steep embankment?

The logistics of corpse disposal

What would be the ideal power source for a cybernetic eye?

Do you forfeit tax refunds/credits if you aren't required to and don't file by April 15?

What happens to sewage if there is no river near by?

What are the motives behind Cersei's orders given to Bronn?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

What is the correct way to use the pinch test for dehydration?

Right-skewed distribution with mean equals to mode?

Stars Make Stars



save big num in magento product price



Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Magento dynamic product priceGet price of product in product pageHow to raise the amount of product price digits?Cant save Price for Bundle product magentoGroup price for productWhy my product type in magento 2 don't have the advanced price?Magento Price Change ModuleOnload change product price magentoPrice always empty when create product programaticallyHow to display updated price in bundle product item in product page?



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








1















I wanna set this number 100000000000 to my product price but Magento change it to 100000000 and it doesn't save it correctly



how can I fix it?



magento version 1.9










share|improve this question




























    1















    I wanna set this number 100000000000 to my product price but Magento change it to 100000000 and it doesn't save it correctly



    how can I fix it?



    magento version 1.9










    share|improve this question
























      1












      1








      1








      I wanna set this number 100000000000 to my product price but Magento change it to 100000000 and it doesn't save it correctly



      how can I fix it?



      magento version 1.9










      share|improve this question














      I wanna set this number 100000000000 to my product price but Magento change it to 100000000 and it doesn't save it correctly



      how can I fix it?



      magento version 1.9







      magento-1.9 price






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 11 at 21:31









      majidmajid

      336




      336




















          1 Answer
          1






          active

          oldest

          votes


















          1














          That is because of the limitations of the columns definition in MySQL: The columns where prices are stored are all of type decimal(12,4). That means that you can store only prices with a maximum of 12 digits in total where 4 are digital points. So the maximum value that can be stored is 99999999.9999 and rounded 100000000.



          In order to allow greater values you will need to change all the corresponding database fields from decimal(12,4) to something larger. To work with prices of 100000000000 you need at least 4 more digits because the value will be summed for example in checkout process (3 digits would allow a maximum of 99999999999.9999 rounded exactly your required price 100000000000). That would mean to change the affected columns from decimal(12,4) to decimal(16,4)



          The MySQL command to perform a change like this for a column is:



          alter table [YOUR TABLENAME] modify [YOUR COLUMN] decimal(16,4);


          Be aware that there are lots of affected columns in Magentos database!



          Starting with value in table catalog_product_entity_decimal (where the price product attributes are stored, going to and the price columns in sales_flat_quote_item,sales_flat_order_item etc. to the total columns in sales_flat_quote,sales_flat_order, sales_flat_order_grid,sales_flat_invoice,sales_flat_invoice_gird etc. (e.g. base_subtotal,subtotal,base_grand_total, grand_total). This list is not complete!



          And there may be some more tables / columns affected depending on your maximum order value, tax calculation etc.




          You should also be aware that changing database definitions on core
          Magento fields my cause conflicts with later updates or potential
          migrations to Magento 2.**



          If you want to go that way you should analyze your settings to
          identify all the needed columns, make the changes in a local /
          development environment and test them before rolling them out in
          production!







          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%2f269789%2fsave-big-num-in-magento-product-price%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









            1














            That is because of the limitations of the columns definition in MySQL: The columns where prices are stored are all of type decimal(12,4). That means that you can store only prices with a maximum of 12 digits in total where 4 are digital points. So the maximum value that can be stored is 99999999.9999 and rounded 100000000.



            In order to allow greater values you will need to change all the corresponding database fields from decimal(12,4) to something larger. To work with prices of 100000000000 you need at least 4 more digits because the value will be summed for example in checkout process (3 digits would allow a maximum of 99999999999.9999 rounded exactly your required price 100000000000). That would mean to change the affected columns from decimal(12,4) to decimal(16,4)



            The MySQL command to perform a change like this for a column is:



            alter table [YOUR TABLENAME] modify [YOUR COLUMN] decimal(16,4);


            Be aware that there are lots of affected columns in Magentos database!



            Starting with value in table catalog_product_entity_decimal (where the price product attributes are stored, going to and the price columns in sales_flat_quote_item,sales_flat_order_item etc. to the total columns in sales_flat_quote,sales_flat_order, sales_flat_order_grid,sales_flat_invoice,sales_flat_invoice_gird etc. (e.g. base_subtotal,subtotal,base_grand_total, grand_total). This list is not complete!



            And there may be some more tables / columns affected depending on your maximum order value, tax calculation etc.




            You should also be aware that changing database definitions on core
            Magento fields my cause conflicts with later updates or potential
            migrations to Magento 2.**



            If you want to go that way you should analyze your settings to
            identify all the needed columns, make the changes in a local /
            development environment and test them before rolling them out in
            production!







            share|improve this answer



























              1














              That is because of the limitations of the columns definition in MySQL: The columns where prices are stored are all of type decimal(12,4). That means that you can store only prices with a maximum of 12 digits in total where 4 are digital points. So the maximum value that can be stored is 99999999.9999 and rounded 100000000.



              In order to allow greater values you will need to change all the corresponding database fields from decimal(12,4) to something larger. To work with prices of 100000000000 you need at least 4 more digits because the value will be summed for example in checkout process (3 digits would allow a maximum of 99999999999.9999 rounded exactly your required price 100000000000). That would mean to change the affected columns from decimal(12,4) to decimal(16,4)



              The MySQL command to perform a change like this for a column is:



              alter table [YOUR TABLENAME] modify [YOUR COLUMN] decimal(16,4);


              Be aware that there are lots of affected columns in Magentos database!



              Starting with value in table catalog_product_entity_decimal (where the price product attributes are stored, going to and the price columns in sales_flat_quote_item,sales_flat_order_item etc. to the total columns in sales_flat_quote,sales_flat_order, sales_flat_order_grid,sales_flat_invoice,sales_flat_invoice_gird etc. (e.g. base_subtotal,subtotal,base_grand_total, grand_total). This list is not complete!



              And there may be some more tables / columns affected depending on your maximum order value, tax calculation etc.




              You should also be aware that changing database definitions on core
              Magento fields my cause conflicts with later updates or potential
              migrations to Magento 2.**



              If you want to go that way you should analyze your settings to
              identify all the needed columns, make the changes in a local /
              development environment and test them before rolling them out in
              production!







              share|improve this answer

























                1












                1








                1







                That is because of the limitations of the columns definition in MySQL: The columns where prices are stored are all of type decimal(12,4). That means that you can store only prices with a maximum of 12 digits in total where 4 are digital points. So the maximum value that can be stored is 99999999.9999 and rounded 100000000.



                In order to allow greater values you will need to change all the corresponding database fields from decimal(12,4) to something larger. To work with prices of 100000000000 you need at least 4 more digits because the value will be summed for example in checkout process (3 digits would allow a maximum of 99999999999.9999 rounded exactly your required price 100000000000). That would mean to change the affected columns from decimal(12,4) to decimal(16,4)



                The MySQL command to perform a change like this for a column is:



                alter table [YOUR TABLENAME] modify [YOUR COLUMN] decimal(16,4);


                Be aware that there are lots of affected columns in Magentos database!



                Starting with value in table catalog_product_entity_decimal (where the price product attributes are stored, going to and the price columns in sales_flat_quote_item,sales_flat_order_item etc. to the total columns in sales_flat_quote,sales_flat_order, sales_flat_order_grid,sales_flat_invoice,sales_flat_invoice_gird etc. (e.g. base_subtotal,subtotal,base_grand_total, grand_total). This list is not complete!



                And there may be some more tables / columns affected depending on your maximum order value, tax calculation etc.




                You should also be aware that changing database definitions on core
                Magento fields my cause conflicts with later updates or potential
                migrations to Magento 2.**



                If you want to go that way you should analyze your settings to
                identify all the needed columns, make the changes in a local /
                development environment and test them before rolling them out in
                production!







                share|improve this answer













                That is because of the limitations of the columns definition in MySQL: The columns where prices are stored are all of type decimal(12,4). That means that you can store only prices with a maximum of 12 digits in total where 4 are digital points. So the maximum value that can be stored is 99999999.9999 and rounded 100000000.



                In order to allow greater values you will need to change all the corresponding database fields from decimal(12,4) to something larger. To work with prices of 100000000000 you need at least 4 more digits because the value will be summed for example in checkout process (3 digits would allow a maximum of 99999999999.9999 rounded exactly your required price 100000000000). That would mean to change the affected columns from decimal(12,4) to decimal(16,4)



                The MySQL command to perform a change like this for a column is:



                alter table [YOUR TABLENAME] modify [YOUR COLUMN] decimal(16,4);


                Be aware that there are lots of affected columns in Magentos database!



                Starting with value in table catalog_product_entity_decimal (where the price product attributes are stored, going to and the price columns in sales_flat_quote_item,sales_flat_order_item etc. to the total columns in sales_flat_quote,sales_flat_order, sales_flat_order_grid,sales_flat_invoice,sales_flat_invoice_gird etc. (e.g. base_subtotal,subtotal,base_grand_total, grand_total). This list is not complete!



                And there may be some more tables / columns affected depending on your maximum order value, tax calculation etc.




                You should also be aware that changing database definitions on core
                Magento fields my cause conflicts with later updates or potential
                migrations to Magento 2.**



                If you want to go that way you should analyze your settings to
                identify all the needed columns, make the changes in a local /
                development environment and test them before rolling them out in
                production!








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 12 at 5:46









                HelgeBHelgeB

                3,2781323




                3,2781323



























                    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%2f269789%2fsave-big-num-in-magento-product-price%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

                    Sum ergo cogito? 1 nng

                    419 nièngy_Soadمي 19bal1.5o_g

                    Queiggey Chernihivv 9NnOo i Zw X QqKk LpB