Magento 2 troubleshooting › Catalogue
Why can't customers buy a product on one website?
Short answer: To be buyable on a website, a product must be enabled in that store view, assigned to the website, salable in the website's stock, and allowed for the customer's group. Check them in that order.
Check it step by step
These queries only read data. Run them on a copy of your database if you can, or ask your developer to. If your tables have a prefix (set in app/etc/env.php), add it to each table name.
1. Website assignment and status per store view
Magento Open Source
SET @sku = 'ABC-123'; -- your SKU
SELECT s.code AS store_view, w.code AS website,
(pw.product_id IS NOT NULL) AS on_website,
COALESCE(sv.value, d.value) AS status
FROM catalog_product_entity e
JOIN store s ON s.store_id > 0
JOIN store_website w ON w.website_id = s.website_id
LEFT JOIN catalog_product_website pw ON pw.product_id = e.entity_id AND pw.website_id = s.website_id
JOIN eav_entity_type t ON t.entity_type_code = 'catalog_product'
JOIN eav_attribute a_status ON a_status.entity_type_id = t.entity_type_id AND a_status.attribute_code = 'status'
LEFT JOIN catalog_product_entity_int d ON d.entity_id = e.entity_id AND d.attribute_id = a_status.attribute_id AND d.store_id = 0
LEFT JOIN catalog_product_entity_int sv ON sv.entity_id = e.entity_id AND sv.attribute_id = a_status.attribute_id AND sv.store_id = s.store_id
WHERE e.sku = @sku
ORDER BY w.code, s.code;
Adobe Commerce
Product, category, rule and CMS values are stored per version and joined on row_id (why):
SET @sku = 'ABC-123'; -- your SKU
SELECT s.code AS store_view, w.code AS website,
(pw.product_id IS NOT NULL) AS on_website,
COALESCE(sv.value, d.value) AS status
FROM catalog_product_entity e
JOIN store s ON s.store_id > 0
JOIN store_website w ON w.website_id = s.website_id
LEFT JOIN catalog_product_website pw ON pw.product_id = e.entity_id AND pw.website_id = s.website_id
JOIN eav_entity_type t ON t.entity_type_code = 'catalog_product'
JOIN eav_attribute a_status ON a_status.entity_type_id = t.entity_type_id AND a_status.attribute_code = 'status'
LEFT JOIN catalog_product_entity_int d ON d.row_id = e.row_id AND d.attribute_id = a_status.attribute_id AND d.store_id = 0
LEFT JOIN catalog_product_entity_int sv ON sv.row_id = e.row_id AND sv.attribute_id = a_status.attribute_id AND sv.store_id = s.store_id
WHERE e.sku = @sku
AND e.created_in <= UNIX_TIMESTAMP() AND e.updated_in > UNIX_TIMESTAMP()
ORDER BY w.code, s.code;
Status 1 is enabled, 2 disabled.
2. Which stock sells on each website, and is the product salable there
Works on Magento Open Source and Adobe Commerce:
SET @sku = 'ABC-123'; -- your SKU
SELECT sc.code AS website, sc.stock_id,
(SELECT SUM(r.quantity) FROM inventory_reservation r WHERE r.sku = @sku AND r.stock_id = sc.stock_id) AS reserved
FROM inventory_stock_sales_channel sc
WHERE sc.type = 'website';
Then read is_salable from that stock's index (inventory_stock_1 for the Default Stock, inventory_stock_<id> for others). If it's 0, see salable quantity is 0.
3. Quantity limits on the product
Works on Magento Open Source and Adobe Commerce:
SET @sku = 'ABC-123'; -- your SKU
SELECT si.min_sale_qty, si.use_config_min_sale_qty, si.max_sale_qty, si.use_config_max_sale_qty,
si.enable_qty_increments, si.qty_increments
FROM catalog_product_entity e
JOIN cataloginventory_stock_item si ON si.product_id = e.entity_id
WHERE e.sku = @sku;
A minimum quantity of 10 or a quantity increment of 6 makes “add 1 to cart” fail with a message customers often ignore.
How to fix it
- Assign the website, enable the product in the store view, or fix stock, then reindex.
- Required custom options without a default stop add-to-cart from category pages; the customer has to open the product page.
- On Adobe Commerce with category permissions, or B2B with shared catalogs, the customer's group may not be allowed to see prices or add to cart.