- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to disable products with CSV file import?
Hello,
I'm trying to disable selected products with a simple import file:
sku|status
123ABC|2
and
sku|product_online
123ABC|2
But neither of them work correctly. File is properly made, there are no bugs in CSV.
I'm testing that on 3 different products, none of them is changed after file import.
Hope someone has encountered simmilar issue.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to disable products with CSV file import?
Could you please check with run below command,
php bin/magento indexer:reindex php bin/magento cache:flush
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to disable products with CSV file import?
@Rakesh Jesadiya thanks for Your reply. I do not have access to code unfortunately (im marketer, not programmer). Is there any other thing to do from admin panel?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to disable products with CSV file import?
By default You are using CSV to disable product, Its correct way.
If you need to disable product using CSV just use product_online with 2.
If you need to enable product using CSV just use product_online with 1.
Format is,
sku product_online abc 2 aaa 2
Now all the abc and aaa product will be disable.
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to disable products with CSV file import?
I've done exactly what You suggested - but still no effect. All cookies were flushed, products were reindexed. Even saving CSV file with UTF8 does not help
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to disable products with CSV file import?
if you have multiple website then please add product_websites column field in your csv and upload again.
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to disable products with CSV file import?
@Rakesh Jesadiya i have only one webstore based on Magento.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to disable products with CSV file import?
sku | product_online | product_websites | store_view_code |
6250105 | 2 | base | san_antonio_english |
If i try to import i am getting following error,