Questions tagged [disabled-products]

Denotes questions related to Disabled Product Collection

Filter by
Sorted by
Tagged with
0 votes
1 answer
35 views

below code gives only enable value i want both enable and disable all product in magento 2.3

$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $productCollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory'); $collection = $...
Galib's user avatar
  • 25
0 votes
0 answers
2k views

Magento 2: Disabled products are still visible in Frontend

I have disabled the product from admin panel but still the product are visible in the frontend. Expectation: Product should not visible in frontend when disabled it via admin. Actual Result: Products ...
MagentoDev's user avatar
0 votes
1 answer
184 views

How to get disabled products id's and products price in magento 2 by using SQL Query?

I want to get disabled products id's and products price in magento 2 by using SQL Query ? By using this i'm getting disabled product but how to get price for that products. SELECT entity_id FROM `...
Prits's user avatar
  • 626
0 votes
1 answer
160 views

Why my Disabled product collection gives empty array in magento 2?

I want to get disabled product id's in my system but it gives me an empty array. Here is screenshot of my products.When i grab disabled product by using this code $updatedproids = []; $...
Prits's user avatar
  • 626
0 votes
2 answers
472 views

How to get only disabled product in Magento 2 Controller?

How to get only disabled product In Controller I have getting all the products <?php namespace Mageplaza\HelloWorld\Controller\Index; use Magento\Catalog\Model\Product\Attribute\Source\Status; use ...
Prits's user avatar
  • 626
2 votes
2 answers
340 views

Magento 2.3.2 Collection foreach didn't get disabled product

I am using Magento 2.3.2. I am filtering collection if product ids found in array. before foreach if I am printing collection I am getting data. But in foreach I am not getting any data. $productIds ...
Prashant Valanda's user avatar