2022 Developer Survey is open! Take survey.

Questions tagged [disabled-products]

Denotes questions related to Disabled Product Collection

Filter by
Sorted by
Tagged with
2 votes
2 answers
192 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 ...
user avatar
0 votes
1 answer
78 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 `...
user avatar
  • 526
0 votes
1 answer
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 = $...
user avatar
  • 1
0 votes
0 answers
589 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 ...
user avatar
  • 480
0 votes
1 answer
119 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 = []; $...
user avatar
  • 526
0 votes
2 answers
191 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 ...
user avatar
  • 526