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

            Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

            Magento 2 disable Secret Key on URL's from terminal The Next CEO of Stack OverflowMagento 2 Shortcut/GUI tool to perform commandline tasks for windowsIn menu add configuration linkMagento oAuth : Generating access token and access secretMagento 2 security key issue in Third-Party API redirect URIPublic actions in admin controllersHow to Disable Cache in Custom WidgetURL Key not changing in Magento 2Product URL Key gets deleted when importing custom options - Magento 2Problem with reindex terminalMagento 2 - bin/magento Commands not working in Cpanel Terminal

            Aasi (pallopeli) Navigointivalikko