cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling all products magento 2

Enabling all products magento 2

Is there a command line string and or easy way to enable all products at once on magento 2? After import, all my products are disabled.
10 REPLIES 10

Re: Enabling all products magento 2

Hi @allen_groff,

You can enable all products from product grid in admin.

Admin> catalog> products>
Select all from left checkboxes from top.
Then change Action dropdown> change status> enable.

 

1.png

I hope it will help you

Re: Enabling all products magento 2

Hello @allen_groff 

 

You can enable products from admin grid Mass action(select all) and change status As @Vimal Kumar shared in his post but if you still can not see products in front, might be products are out of stocks so run below mysql query:

UPDATE cataloginventory_stock_item c SET c.qty = 100 WHERE 1=1
UPDATE cataloginventory_stock_item c SET c.is_in_stock = 1 WHERE 1=1

After this just run Magento command:

php -dmemory_limit=-1 bin/magento indexer:reindex
Manish Mittal
https://www.manishmittal.com/

Re: Enabling all products magento 2

I don't have the drop down option to select all. Not seeing it in the columns drop down options either. 

Re: Enabling all products magento 2

Which magento version are you using? You can try with database if it
Manish Mittal
https://www.manishmittal.com/

Re: Enabling all products magento 2

Magento ver. 2.3.1

Re: Enabling all products magento 2

Hello @allen_groff 

 

See here for your reference:

 

products.PNG

Manish Mittal
https://www.manishmittal.com/

Re: Enabling all products magento 2

Yes, I have that. But no select all option. When clicking that, it requires boxes to be selected. But I don't want to do 200 at a time singularly

Re: Enabling all products magento 2

Hello @allen_groff 

 

Run below query in database:

UPDATE catalog_product_entity_int SET value = 1 WHERE attribute_id = (
    SELECT attribute_id FROM `eav_attribute` e WHERE e.`attribute_code` = 'status' AND e.frontend_label = "Enable Product"
)
Manish Mittal
https://www.manishmittal.com/

Re: Enabling all products magento 2

 


@Vimal Kumar wrote:

Hi @allen_groff,

You can enable all products from product grid in admin.

Admin> catalog> products>
Select all from left checkboxes from top.
Then change Action dropdown> change status> enable.

 

1.png

I hope it will help you


when i changing product status but issues occuring like below...

Something went wrong while updating the product(s) status.