Critical fix for category filter in product discovery: - BREAKING BUG: Category filter was doing a new search() that completely ignored product/supplier/category blacklists - FIX: Now filters from filtered_products (which has blacklists applied) instead of doing a fresh search() from database - This ensures blacklist rules are ALWAYS respected Added detailed logging for debugging empty category results: - Log collected category IDs (including children) - Log before/after product counts - If result is empty, log sample product categories to help debug - Helps identify configuration issues vs code bugs This fixes user report: 'no muestra ningún producto' in some categories The issue was that filtered products were being replaced with a fresh search that bypassed all blacklist filters. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| portal.py | ||
| website_sale.py | ||