Vote up!
Vote down!

Product Sku Auto Complete (Hide disabled products)

We have a lot of products showing up in the product search (by sku/title). Is it possible to exclude disabled products from this search? Many of the products are only active for 1 calendar year, and then new products are created.

I had a look at `commerce_product_match_products()` it seems like the helper function this is using would need to be patched to exclude disabled products, perhaps with a configuration option in commerce settings.

I can write a patch for this and track an issue over on the d.o project page, but I wanted to start discussion here.

on February 12, 2015

1 Answer