AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: timlight10 on July 29, 2026, 07:09:19 PM

Title: Is there a way to see a list of products that have no categories assigned?
Post by: timlight10 on July 29, 2026, 07:09:19 PM
Is there a way to see a list of products that have no categories assigned?
Title: Re: Is there a way to see a list of products that have no categories assigned?
Post by: Basara on July 30, 2026, 06:28:55 AM
Hello.
Please run this SQL script in phpMyAdmin or your preferred database tool. Be sure to replace the database prefix with your own before executing it.
SELECT
    p.product_id,
    p.model,
    p.status,
    pd.name
FROM `<DB_PREFIX>products` AS p
LEFT JOIN `<DB_PREFIX>product_descriptions` AS pd
    ON pd.product_id = p.product_id
    AND pd.language_id = 1
WHERE NOT EXISTS (
    SELECT 1
    FROM `<DB_PREFIX>products_to_categories` AS p2c
    WHERE p2c.product_id = p.product_id
)
ORDER BY p.product_id;
Title: Re: Is there a way to see a list of products that have no categories assigned?
Post by: timlight10 on July 30, 2026, 09:49:42 AM
Thank you, this worked perfectly and helped me get my catalog cleaned up!