Disable “Only X left Threshold” Qty from Showing on StoreWhat is the difference between out of stock and 0 of stock?Product Stock -1Disabled products still visible in configurable product optionsProduct ordered but was out of stockSingle inventory for all productsDisplay Out of Stock Configuration not workingThe catalog inventory stock item unique hase changed'only x left threshold' option not workingHow to show Qty left in Magento 2 Listing page?

The most efficient algorithm to find all possible integer pairs which sum to a given integer

Could solar power be utilized and substitute coal in the 19th century?

What was required to accept "troll"?

Organic chemistry Iodoform Reaction

How to interpret the phrase "t’en a fait voir à toi"?

What should I use for Mishna study?

Can I create an upright 7-foot × 5-foot wall with the Minor Illusion spell?

Are Warlocks Arcane or Divine?

Can I Retrieve Email Addresses from BCC?

Proof of Lemma: Every integer can be written as a product of primes

Can I use my Chinese passport to enter China after I acquired another citizenship?

What to do when my ideas aren't chosen, when I strongly disagree with the chosen solution?

How can I successfully establish a nationwide combat training program for a large country?

Adding empty element to declared container without declaring type of element

Books on the History of math research at European universities

Is a naturally all "male" species possible?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

Meta programming: Declare a new struct on the fly

Indicating multiple different modes of speech (fantasy language or telepathy)

Greatest common substring

Blender - show edges angles “direction”

word describing multiple paths to the same abstract outcome

Stereotypical names

Who must act to prevent Brexit on March 29th?



Disable “Only X left Threshold” Qty from Showing on Store


What is the difference between out of stock and 0 of stock?Product Stock -1Disabled products still visible in configurable product optionsProduct ordered but was out of stockSingle inventory for all productsDisplay Out of Stock Configuration not workingThe catalog inventory stock item unique hase changed'only x left threshold' option not workingHow to show Qty left in Magento 2 Listing page?













3















Anyone know how to remove the "Only # left" from showing on the product page of the store?



System > Configuration > Inventory for Stock Options has the field "Only X left Threshold" set to "0" which is suppose to disable this yet it still shows. I've also set Manage Stock to No for Product Stock Options. I've done the obvious with clearing cache. I'm running 1.8 ver and to have a Custom Theme installed. Is this a known bug or could the Custom Theme be overriding something?










share|improve this question



















  • 1





    Check the Product page of your theme, there might be the issue.

    – mbalparda
    Jul 18 '14 at 14:10











  • Did you reindex the cataloginventory_stock index after disabling the stock management?

    – Thorsten
    Jul 18 '14 at 14:13
















3















Anyone know how to remove the "Only # left" from showing on the product page of the store?



System > Configuration > Inventory for Stock Options has the field "Only X left Threshold" set to "0" which is suppose to disable this yet it still shows. I've also set Manage Stock to No for Product Stock Options. I've done the obvious with clearing cache. I'm running 1.8 ver and to have a Custom Theme installed. Is this a known bug or could the Custom Theme be overriding something?










share|improve this question



















  • 1





    Check the Product page of your theme, there might be the issue.

    – mbalparda
    Jul 18 '14 at 14:10











  • Did you reindex the cataloginventory_stock index after disabling the stock management?

    – Thorsten
    Jul 18 '14 at 14:13














3












3








3








Anyone know how to remove the "Only # left" from showing on the product page of the store?



System > Configuration > Inventory for Stock Options has the field "Only X left Threshold" set to "0" which is suppose to disable this yet it still shows. I've also set Manage Stock to No for Product Stock Options. I've done the obvious with clearing cache. I'm running 1.8 ver and to have a Custom Theme installed. Is this a known bug or could the Custom Theme be overriding something?










share|improve this question
















Anyone know how to remove the "Only # left" from showing on the product page of the store?



System > Configuration > Inventory for Stock Options has the field "Only X left Threshold" set to "0" which is suppose to disable this yet it still shows. I've also set Manage Stock to No for Product Stock Options. I've done the obvious with clearing cache. I'm running 1.8 ver and to have a Custom Theme installed. Is this a known bug or could the Custom Theme be overriding something?







stock inventory cataloginventory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 21 '15 at 18:05









David Manners

24.7k862212




24.7k862212










asked Jul 18 '14 at 14:07









High VibrationsHigh Vibrations

1613




1613







  • 1





    Check the Product page of your theme, there might be the issue.

    – mbalparda
    Jul 18 '14 at 14:10











  • Did you reindex the cataloginventory_stock index after disabling the stock management?

    – Thorsten
    Jul 18 '14 at 14:13













  • 1





    Check the Product page of your theme, there might be the issue.

    – mbalparda
    Jul 18 '14 at 14:10











  • Did you reindex the cataloginventory_stock index after disabling the stock management?

    – Thorsten
    Jul 18 '14 at 14:13








1




1





Check the Product page of your theme, there might be the issue.

– mbalparda
Jul 18 '14 at 14:10





Check the Product page of your theme, there might be the issue.

– mbalparda
Jul 18 '14 at 14:10













Did you reindex the cataloginventory_stock index after disabling the stock management?

– Thorsten
Jul 18 '14 at 14:13






Did you reindex the cataloginventory_stock index after disabling the stock management?

– Thorsten
Jul 18 '14 at 14:13











5 Answers
5






active

oldest

votes


















2














in the file




appdesignfrontenddefaultYourThemetemplatecatalogproduct




the following lines need to be changed.



 <div class="availability-only">
<?php echo $this->__('Only') ?>
<?php echo (int)($qtyStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());?>
<?php echo $this->__('left') ?>
</div>


Add the first line and the last line. The finished code should look like this:



 <?php if ($this->displayProductStockStatus()): ?>
<div class="availability-only">
<?php echo $this->__('Only') ?>
<?php echo (int)($qtyStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());?>
<?php echo $this->__('left') ?>
</div>
<?php endif; ?>





share|improve this answer
































    1














    So in Magento 1.9 this section is added using the following files.



    1. app/design/frontend/base/default/template/cataloginventory/stockqty/composite.phtml

    2. app/design/frontend/base/default/template/cataloginventory/stockqty/default.phtml

    These files are added from the layout xml file app/design/frontend/base/default/layout/cataloginventory.xml. The default file is for simple and virtual products and the composite is for grouped, bundle and configurable products.



    Each of these templates use the function isMsgVisible before showing the message.



    public function isMsgVisible()

    return ($this->getStockQty() > 0 && $this->getStockQty() <= $this->getThresholdQty());



    So I think if you simply set the threshold quantity to 0 then the message will not show up. If you need the threshold but no message then what you can do is on of the follow.



    1. Make a version of these files in your theme and remove the information,

    2. Remove the blocks via a layout.xml change,

    3. Rewrite the blocks and extend the function isMsgVisible,

    For me I would go with either the setting of the threshold to 0 or unsetting the blocks via a layout xml.






    share|improve this answer






























      1














      You have to disable "Display products availability in stock in the frontend" in System -> Configuration -> Inventory too.






      share|improve this answer






























        0














        In the file appcodecoreMageCatalogInventoryBlockStockqtyAbstract.php
        I changed



        public function isMsgVisible()

        return ($this->getStockQty() > 0 && $this->getStockQty() <= $this->getThresholdQty());



        I change to



        public function isMsgVisible()


        return false;



        Its working to me. Hope it help.






        share|improve this answer
































          0














          The easiest way to disable this message in Magento 2 is to just set the threshold to -1 under Stores > Settings > Configuration > Catalog > Inventory > Stock Options > Only X left Threshold.






          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%2f29387%2fdisable-only-x-left-threshold-qty-from-showing-on-store%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            5 Answers
            5






            active

            oldest

            votes








            5 Answers
            5






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            in the file




            appdesignfrontenddefaultYourThemetemplatecatalogproduct




            the following lines need to be changed.



             <div class="availability-only">
            <?php echo $this->__('Only') ?>
            <?php echo (int)($qtyStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());?>
            <?php echo $this->__('left') ?>
            </div>


            Add the first line and the last line. The finished code should look like this:



             <?php if ($this->displayProductStockStatus()): ?>
            <div class="availability-only">
            <?php echo $this->__('Only') ?>
            <?php echo (int)($qtyStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());?>
            <?php echo $this->__('left') ?>
            </div>
            <?php endif; ?>





            share|improve this answer





























              2














              in the file




              appdesignfrontenddefaultYourThemetemplatecatalogproduct




              the following lines need to be changed.



               <div class="availability-only">
              <?php echo $this->__('Only') ?>
              <?php echo (int)($qtyStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());?>
              <?php echo $this->__('left') ?>
              </div>


              Add the first line and the last line. The finished code should look like this:



               <?php if ($this->displayProductStockStatus()): ?>
              <div class="availability-only">
              <?php echo $this->__('Only') ?>
              <?php echo (int)($qtyStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());?>
              <?php echo $this->__('left') ?>
              </div>
              <?php endif; ?>





              share|improve this answer



























                2












                2








                2







                in the file




                appdesignfrontenddefaultYourThemetemplatecatalogproduct




                the following lines need to be changed.



                 <div class="availability-only">
                <?php echo $this->__('Only') ?>
                <?php echo (int)($qtyStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());?>
                <?php echo $this->__('left') ?>
                </div>


                Add the first line and the last line. The finished code should look like this:



                 <?php if ($this->displayProductStockStatus()): ?>
                <div class="availability-only">
                <?php echo $this->__('Only') ?>
                <?php echo (int)($qtyStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());?>
                <?php echo $this->__('left') ?>
                </div>
                <?php endif; ?>





                share|improve this answer















                in the file




                appdesignfrontenddefaultYourThemetemplatecatalogproduct




                the following lines need to be changed.



                 <div class="availability-only">
                <?php echo $this->__('Only') ?>
                <?php echo (int)($qtyStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());?>
                <?php echo $this->__('left') ?>
                </div>


                Add the first line and the last line. The finished code should look like this:



                 <?php if ($this->displayProductStockStatus()): ?>
                <div class="availability-only">
                <?php echo $this->__('Only') ?>
                <?php echo (int)($qtyStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty());?>
                <?php echo $this->__('left') ?>
                </div>
                <?php endif; ?>






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Oct 18 '17 at 4:59









                Manoj Deswal

                4,38791744




                4,38791744










                answered Oct 31 '14 at 18:59









                geevesgeeves

                1213




                1213























                    1














                    So in Magento 1.9 this section is added using the following files.



                    1. app/design/frontend/base/default/template/cataloginventory/stockqty/composite.phtml

                    2. app/design/frontend/base/default/template/cataloginventory/stockqty/default.phtml

                    These files are added from the layout xml file app/design/frontend/base/default/layout/cataloginventory.xml. The default file is for simple and virtual products and the composite is for grouped, bundle and configurable products.



                    Each of these templates use the function isMsgVisible before showing the message.



                    public function isMsgVisible()

                    return ($this->getStockQty() > 0 && $this->getStockQty() <= $this->getThresholdQty());



                    So I think if you simply set the threshold quantity to 0 then the message will not show up. If you need the threshold but no message then what you can do is on of the follow.



                    1. Make a version of these files in your theme and remove the information,

                    2. Remove the blocks via a layout.xml change,

                    3. Rewrite the blocks and extend the function isMsgVisible,

                    For me I would go with either the setting of the threshold to 0 or unsetting the blocks via a layout xml.






                    share|improve this answer



























                      1














                      So in Magento 1.9 this section is added using the following files.



                      1. app/design/frontend/base/default/template/cataloginventory/stockqty/composite.phtml

                      2. app/design/frontend/base/default/template/cataloginventory/stockqty/default.phtml

                      These files are added from the layout xml file app/design/frontend/base/default/layout/cataloginventory.xml. The default file is for simple and virtual products and the composite is for grouped, bundle and configurable products.



                      Each of these templates use the function isMsgVisible before showing the message.



                      public function isMsgVisible()

                      return ($this->getStockQty() > 0 && $this->getStockQty() <= $this->getThresholdQty());



                      So I think if you simply set the threshold quantity to 0 then the message will not show up. If you need the threshold but no message then what you can do is on of the follow.



                      1. Make a version of these files in your theme and remove the information,

                      2. Remove the blocks via a layout.xml change,

                      3. Rewrite the blocks and extend the function isMsgVisible,

                      For me I would go with either the setting of the threshold to 0 or unsetting the blocks via a layout xml.






                      share|improve this answer

























                        1












                        1








                        1







                        So in Magento 1.9 this section is added using the following files.



                        1. app/design/frontend/base/default/template/cataloginventory/stockqty/composite.phtml

                        2. app/design/frontend/base/default/template/cataloginventory/stockqty/default.phtml

                        These files are added from the layout xml file app/design/frontend/base/default/layout/cataloginventory.xml. The default file is for simple and virtual products and the composite is for grouped, bundle and configurable products.



                        Each of these templates use the function isMsgVisible before showing the message.



                        public function isMsgVisible()

                        return ($this->getStockQty() > 0 && $this->getStockQty() <= $this->getThresholdQty());



                        So I think if you simply set the threshold quantity to 0 then the message will not show up. If you need the threshold but no message then what you can do is on of the follow.



                        1. Make a version of these files in your theme and remove the information,

                        2. Remove the blocks via a layout.xml change,

                        3. Rewrite the blocks and extend the function isMsgVisible,

                        For me I would go with either the setting of the threshold to 0 or unsetting the blocks via a layout xml.






                        share|improve this answer













                        So in Magento 1.9 this section is added using the following files.



                        1. app/design/frontend/base/default/template/cataloginventory/stockqty/composite.phtml

                        2. app/design/frontend/base/default/template/cataloginventory/stockqty/default.phtml

                        These files are added from the layout xml file app/design/frontend/base/default/layout/cataloginventory.xml. The default file is for simple and virtual products and the composite is for grouped, bundle and configurable products.



                        Each of these templates use the function isMsgVisible before showing the message.



                        public function isMsgVisible()

                        return ($this->getStockQty() > 0 && $this->getStockQty() <= $this->getThresholdQty());



                        So I think if you simply set the threshold quantity to 0 then the message will not show up. If you need the threshold but no message then what you can do is on of the follow.



                        1. Make a version of these files in your theme and remove the information,

                        2. Remove the blocks via a layout.xml change,

                        3. Rewrite the blocks and extend the function isMsgVisible,

                        For me I would go with either the setting of the threshold to 0 or unsetting the blocks via a layout xml.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Feb 21 '15 at 18:04









                        David MannersDavid Manners

                        24.7k862212




                        24.7k862212





















                            1














                            You have to disable "Display products availability in stock in the frontend" in System -> Configuration -> Inventory too.






                            share|improve this answer



























                              1














                              You have to disable "Display products availability in stock in the frontend" in System -> Configuration -> Inventory too.






                              share|improve this answer

























                                1












                                1








                                1







                                You have to disable "Display products availability in stock in the frontend" in System -> Configuration -> Inventory too.






                                share|improve this answer













                                You have to disable "Display products availability in stock in the frontend" in System -> Configuration -> Inventory too.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Jan 23 '17 at 5:42









                                SIBHI SSIBHI S

                                1,11211535




                                1,11211535





















                                    0














                                    In the file appcodecoreMageCatalogInventoryBlockStockqtyAbstract.php
                                    I changed



                                    public function isMsgVisible()

                                    return ($this->getStockQty() > 0 && $this->getStockQty() <= $this->getThresholdQty());



                                    I change to



                                    public function isMsgVisible()


                                    return false;



                                    Its working to me. Hope it help.






                                    share|improve this answer





























                                      0














                                      In the file appcodecoreMageCatalogInventoryBlockStockqtyAbstract.php
                                      I changed



                                      public function isMsgVisible()

                                      return ($this->getStockQty() > 0 && $this->getStockQty() <= $this->getThresholdQty());



                                      I change to



                                      public function isMsgVisible()


                                      return false;



                                      Its working to me. Hope it help.






                                      share|improve this answer



























                                        0












                                        0








                                        0







                                        In the file appcodecoreMageCatalogInventoryBlockStockqtyAbstract.php
                                        I changed



                                        public function isMsgVisible()

                                        return ($this->getStockQty() > 0 && $this->getStockQty() <= $this->getThresholdQty());



                                        I change to



                                        public function isMsgVisible()


                                        return false;



                                        Its working to me. Hope it help.






                                        share|improve this answer















                                        In the file appcodecoreMageCatalogInventoryBlockStockqtyAbstract.php
                                        I changed



                                        public function isMsgVisible()

                                        return ($this->getStockQty() > 0 && $this->getStockQty() <= $this->getThresholdQty());



                                        I change to



                                        public function isMsgVisible()


                                        return false;



                                        Its working to me. Hope it help.







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Jan 6 '16 at 17:44

























                                        answered Jan 6 '16 at 13:39









                                        ron24ron24

                                        766




                                        766





















                                            0














                                            The easiest way to disable this message in Magento 2 is to just set the threshold to -1 under Stores > Settings > Configuration > Catalog > Inventory > Stock Options > Only X left Threshold.






                                            share|improve this answer



























                                              0














                                              The easiest way to disable this message in Magento 2 is to just set the threshold to -1 under Stores > Settings > Configuration > Catalog > Inventory > Stock Options > Only X left Threshold.






                                              share|improve this answer

























                                                0












                                                0








                                                0







                                                The easiest way to disable this message in Magento 2 is to just set the threshold to -1 under Stores > Settings > Configuration > Catalog > Inventory > Stock Options > Only X left Threshold.






                                                share|improve this answer













                                                The easiest way to disable this message in Magento 2 is to just set the threshold to -1 under Stores > Settings > Configuration > Catalog > Inventory > Stock Options > Only X left Threshold.







                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered yesterday









                                                Jason CarterJason Carter

                                                363




                                                363



























                                                    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%2f29387%2fdisable-only-x-left-threshold-qty-from-showing-on-store%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