How to check if a product is a simple product

How to check if a product is a simple product

July 6, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to check if a product is a simple product

Identifying Pure Simple Products in Magento

In Magento, identifying pure simple products that aren’t configurable or children of other products is an essential task for product management and inventory control. Let’s dive into how to achieve this using Magento’s built-in features.

Understanding Magento Product Types

Before we begin, let’s recap the relevant Magento product types:

  1. Simple Products: These are basic products with no configurations.
  2. Configurable Products: These allow multiple variations of a single base product.

To identify a pure simple product that isn’t part of a configurable group or a child of another product, we need to check both the product type and its associated parent ID.

Checking the Product Type

The first step is to ensure the product’s type is set as ‘simple’. You can do this through the admin panel:

  1. Navigate to Catalog > Manage Products.
  2. Click on a specific product.
  3. Check if the Product Type field is set to Simple Product.

However, for more advanced programming needs, you might want to retrieve this information programmatically using Magento’s API or the laravel-magento package, which provides a Laravel wrapper around the Magento 2 SOAP and REST APIs.

Here’s an example of retrieving product types via the laravel-magento package:

use Magento\Catalog\Model\Product;
use LaravelMagento\Facades\Client;

$products = Client::get('/rest/V1/products?searchCriteria[filterGroups][0][filters][0][field]=sku&searchCriteria[filterGroups][0][filters][0][value]=example-sku');
foreach ($products['items'] as $product) {
    echo 'Product ID: ' . $product['id'];
    echo ' - Product Type: ' . $product['type_id'];
}

Checking the Parent ID

A simple product can still be a child of a configurable product. To ensure it’s not part of any group, we need to check the parent_id field.

In the admin panel:

  1. Click on Catalog > Manage Products.
  2. Select a specific product.
  3. Look for the Parent Product SKU field—if it’s empty, the product is standalone.

Programmatically, you can retrieve this information using the following Magento API endpoint: /rest/V1/products/{sku}.

Conclusion

Identifying pure simple products in Magento requires checking both the product type and its parent ID. By ensuring the Product Type is set to ‘simple’ and the Parent Product SKU field is empty, you can confidently select or retrieve these standalone items for further processing or analysis.

Remember, it’s always a good practice to double-check your findings using Magento’s built-in tools to ensure data integrity. For more advanced use cases involving complex product structures, consider exploring Magento’s Advanced Search capabilities for refined filtering options.

Magento 2 Catalog API Admin

Our network