Magento 2 : Cannot set product stock status to “Out of stock” using csv The Next CEO of Stack OverflowHow Set Manage Stock as no in the magento - ProgrammaticallyCategories not set upon product importMagento Import Problem For same csvUpdate stock via csvSolution needed for bulk import Magento CSVExport CSV NOT showing ALL Prods - using Magento 1.9.2.2Magento 1.9 stops and doesn't import entire CSV. And don't set stockmagento 2 how to update stock using import csvProducts stock status change after csv importMagento 2: Import multiple select attribute values using CSV

Why didn't Khan get resurrected in the Genesis Explosion?

Anatomically Correct Mesopelagic Aves

How can I open an app using Terminal?

How to be diplomatic in refusing to write code that breaches the privacy of our users

Is HostGator storing my password in plaintext?

How did people program for Consoles with multiple CPUs?

Why does C# sound extremely flat when saxophone is tuned to G?

How easy is it to start Magic from scratch?

Anatomically Correct Strange Women In Ponds Distributing Swords

What is the purpose of the Evocation wizard's Potent Cantrip feature?

Is a stroke of luck acceptable after a series of unfavorable events?

Should I tutor a student who I know has cheated on their homework?

Can a single photon have an energy density?

Which organization defines CJK Unified Ideographs?

How to get regions to plot as graphics

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Opposite of a diet

Term for the "extreme-extension" version of a straw man fallacy?

Inappropriate reference requests from Journal reviewers

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

Shade part of a Venn diagram

When Does an Atlas Uniquely Define a Manifold?

Can the Reverse Gravity spell affect the Meteor Swarm spell?

How does practicing restraint and performing actions of merit purify the mind?



Magento 2 : Cannot set product stock status to “Out of stock” using csv



The Next CEO of Stack OverflowHow Set Manage Stock as no in the magento - ProgrammaticallyCategories not set upon product importMagento Import Problem For same csvUpdate stock via csvSolution needed for bulk import Magento CSVExport CSV NOT showing ALL Prods - using Magento 1.9.2.2Magento 1.9 stops and doesn't import entire CSV. And don't set stockmagento 2 how to update stock using import csvProducts stock status change after csv importMagento 2: Import multiple select attribute values using CSV










0















I tried to import a product using CSV with is_in_stock value to '0' and after the import, the stock status still shows "In stock"



CSV looks like this :




sku,is_in_stock



DC3508BR,0




What am I doing wrong?



thanks










share|improve this question
























  • It may be due to Magento bug github.com/magento/magento2/issues/9774

    – Gediminas
    Sep 6 '18 at 12:44















0















I tried to import a product using CSV with is_in_stock value to '0' and after the import, the stock status still shows "In stock"



CSV looks like this :




sku,is_in_stock



DC3508BR,0




What am I doing wrong?



thanks










share|improve this question
























  • It may be due to Magento bug github.com/magento/magento2/issues/9774

    – Gediminas
    Sep 6 '18 at 12:44













0












0








0








I tried to import a product using CSV with is_in_stock value to '0' and after the import, the stock status still shows "In stock"



CSV looks like this :




sku,is_in_stock



DC3508BR,0




What am I doing wrong?



thanks










share|improve this question
















I tried to import a product using CSV with is_in_stock value to '0' and after the import, the stock status still shows "In stock"



CSV looks like this :




sku,is_in_stock



DC3508BR,0




What am I doing wrong?



thanks







magento2 product import csv inventory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









Shoaib Munir

2,2991829




2,2991829










asked Aug 16 '17 at 14:44









Ken NguyenKen Nguyen

11




11












  • It may be due to Magento bug github.com/magento/magento2/issues/9774

    – Gediminas
    Sep 6 '18 at 12:44

















  • It may be due to Magento bug github.com/magento/magento2/issues/9774

    – Gediminas
    Sep 6 '18 at 12:44
















It may be due to Magento bug github.com/magento/magento2/issues/9774

– Gediminas
Sep 6 '18 at 12:44





It may be due to Magento bug github.com/magento/magento2/issues/9774

– Gediminas
Sep 6 '18 at 12:44










1 Answer
1






active

oldest

votes


















0














In order to update stock in Magento 2 using csv, for most scenarios, you will only need to include 'sku' and 'qty' columns.



However, I am assuming for the products in question you already have stock management turned on either globally or per product and you are not using 'backorders'. For more details on advanced stock management see the Magento documentation: http://docs.magento.com/m2/ce/user_guide/catalog/inventory-product-stock-options.html



is_in_stock (which maps to 'Stock Availability') is not required either as in most scenarios (based on assumptions above) Magento will auto set this based on whether you provide a stock qty of above 0 or not (i.e. qty of 0 or less will set Out of Stock, 1 or above will set 'In Stock')



So, in your case you just need to define 'sku' and 'qty'. Stock Availability will be auto selected based on QTY.






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%2f189346%2fmagento-2-cannot-set-product-stock-status-to-out-of-stock-using-csv%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














    In order to update stock in Magento 2 using csv, for most scenarios, you will only need to include 'sku' and 'qty' columns.



    However, I am assuming for the products in question you already have stock management turned on either globally or per product and you are not using 'backorders'. For more details on advanced stock management see the Magento documentation: http://docs.magento.com/m2/ce/user_guide/catalog/inventory-product-stock-options.html



    is_in_stock (which maps to 'Stock Availability') is not required either as in most scenarios (based on assumptions above) Magento will auto set this based on whether you provide a stock qty of above 0 or not (i.e. qty of 0 or less will set Out of Stock, 1 or above will set 'In Stock')



    So, in your case you just need to define 'sku' and 'qty'. Stock Availability will be auto selected based on QTY.






    share|improve this answer



























      0














      In order to update stock in Magento 2 using csv, for most scenarios, you will only need to include 'sku' and 'qty' columns.



      However, I am assuming for the products in question you already have stock management turned on either globally or per product and you are not using 'backorders'. For more details on advanced stock management see the Magento documentation: http://docs.magento.com/m2/ce/user_guide/catalog/inventory-product-stock-options.html



      is_in_stock (which maps to 'Stock Availability') is not required either as in most scenarios (based on assumptions above) Magento will auto set this based on whether you provide a stock qty of above 0 or not (i.e. qty of 0 or less will set Out of Stock, 1 or above will set 'In Stock')



      So, in your case you just need to define 'sku' and 'qty'. Stock Availability will be auto selected based on QTY.






      share|improve this answer

























        0












        0








        0







        In order to update stock in Magento 2 using csv, for most scenarios, you will only need to include 'sku' and 'qty' columns.



        However, I am assuming for the products in question you already have stock management turned on either globally or per product and you are not using 'backorders'. For more details on advanced stock management see the Magento documentation: http://docs.magento.com/m2/ce/user_guide/catalog/inventory-product-stock-options.html



        is_in_stock (which maps to 'Stock Availability') is not required either as in most scenarios (based on assumptions above) Magento will auto set this based on whether you provide a stock qty of above 0 or not (i.e. qty of 0 or less will set Out of Stock, 1 or above will set 'In Stock')



        So, in your case you just need to define 'sku' and 'qty'. Stock Availability will be auto selected based on QTY.






        share|improve this answer













        In order to update stock in Magento 2 using csv, for most scenarios, you will only need to include 'sku' and 'qty' columns.



        However, I am assuming for the products in question you already have stock management turned on either globally or per product and you are not using 'backorders'. For more details on advanced stock management see the Magento documentation: http://docs.magento.com/m2/ce/user_guide/catalog/inventory-product-stock-options.html



        is_in_stock (which maps to 'Stock Availability') is not required either as in most scenarios (based on assumptions above) Magento will auto set this based on whether you provide a stock qty of above 0 or not (i.e. qty of 0 or less will set Out of Stock, 1 or above will set 'In Stock')



        So, in your case you just need to define 'sku' and 'qty'. Stock Availability will be auto selected based on QTY.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 16 '17 at 19:01









        Abhishek PanchalAbhishek Panchal

        3,5973929




        3,5973929



























            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%2f189346%2fmagento-2-cannot-set-product-stock-status-to-out-of-stock-using-csv%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

            Disable / Remove link to Product Items in Cart Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How can I limit products that can be bought / added to cart?Remove item from cartHide “Add to Cart” button if specific products are already in cart“Prettifying” the custom options in cart pageCreate link in cart sidebar to view all added items After limit reachedLink products together in checkout/cartHow to Get product from cart and add it againHide action-edit on cart page if simple productRemoving Cart items - ObserverRemove wishlist items when added to cart

            Helsingin valtaus Sisällysluettelo Taustaa | Yleistä sotatoimista | Osapuolet | Taistelut Helsingin ympäristössä | Punaisten antautumissuunnitelma | Taistelujen kulku Helsingissä | Valtauksen jälkeen | Tappiot | Muistaminen | Kirjallisuutta | Lähteet | Aiheesta muualla | NavigointivalikkoTeoksen verkkoversioTeoksen verkkoversioGoogle BooksSisällissota Helsingissä päättyi tasan 95 vuotta sittenSaksalaisten ylivoima jyräsi punaisen HelsinginSuomalaiset kuvaavat sotien jälkiä kaupungeissa – katso kuvat ja tarinat tutuilta kulmiltaHelsingin valtaus 90 vuotta sittenSaksalaiset valtasivat HelsinginHyökkäys HelsinkiinHelsingin valtaus 12.–13.4. 1918Saksalaiset käyttivät ihmiskilpiä Helsingin valtauksessa 1918Teoksen verkkoversioTeoksen verkkoversioSaksalaiset hyökkäävät Etelä-SuomeenTaistelut LeppävaarassaSotilaat ja taistelutLeppävaara 1918 huhtikuussa. KapinatarinaHelsingin taistelut 1918Saksalaisten voitonparaati HelsingissäHelsingin valtausta juhlittiinSaksalaisten Helsinki vuonna 1918Helsingin taistelussa kaatuneet valkokaartilaisetHelsinkiin haudatut taisteluissa kaatuneet punaiset12.4.1918 Helsingin valtauksessa saksalaiset apujoukot vapauttavat kaupunginVapaussodan muistomerkkejä Helsingissä ja pääkaupunkiseudullaCrescendo / Vuoden 1918 Kansalaissodan uhrien muistomerkkim

            Adjektiivitarina Tarinan tekeminen | Esimerkki: ennen | Esimerkki: jälkeen | Navigointivalikko