Home › Forums › WoodMart support forum › Products block bug – Include only – field / List of IDs doesn’t find

Products block bug – Include only – field / List of IDs doesn’t find

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #730157

    montearancio
    Participant

    In the WoodMart theme “Products” Gutenberg block, with Data source set to “List of IDs”, the “Include only” field uses an AJAX title search to select products to include. Some products are never found when typing words that are present in their title, even when the searched text is correct and present in many other titles that are found regularly.

    Concrete example:
    – Product: “Cinturino per Orologio in Pelle ‘Classic’ – Nero” (ID 9158, slug: cinturino-per-orologio-in-pelle-classic)
    – Searching “classic” in the “Include only” field, the dropdown only shows two other similar products (“…Marrone” ID 41521 and “…Verde” ID 40082), but NEVER the Nero product (9158), even scrolling through the entire results list.

    Checks already performed that rule out other causes:
    – The product is published, visible, purchasable and in stock (confirmed via wp-json/wc/store/v1/products/9158: is_purchasable:true, is_in_stock:true, published status)
    – Searching for the same product through another filter in the same block (“Category” + “Featured products”), the product IS found correctly
    – SKU (GF25P1) and slug are correct, not duplicated
    – Manually calling the REST endpoint without the include parameter, e.g. wp-json/wc/store/v1/products?search=classic, product 9158 DOES appear correctly in the JSON response along with the other “Classic” products
    – So the issue is not in the database, the product title, its status, or WooCommerce’s core API search, but appears isolated to the search/filter logic of the Gutenberg block itself (possibly an include parameter wrongly applied client-side during search, which excludes some IDs from the results shown in the dropdown)

    Can you help me with this?

    Thank you.

Viewing 1 post (of 1 total)