Questions tagged [disabled-products]

Denotes questions related to Disabled Product Collection

Filter by
Sorted by
Tagged with
0
votes
1answer
29 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 = $...
0
votes
0answers
225 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 ...
0
votes
1answer
82 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 = []; $...
0
votes
1answer
47 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 `...
0
votes
2answers
115 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 ...
2
votes
2answers
126 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 ...