There is. You can replace our standard search with your own by modifying the admin UI. It would be pretty trivial to do the search and further filter the results before returning them to the user.
You can perform a search by using the class ProductSearchQuery and setting the appropriate fields on that.
To execute the search you go
var products = ObjectFactory.Instance.Resolve<IRepository<Product>>().Select(new ProductSearchQuery())); // Filter out variants from seach result products.Where(x => x.ParentProductId == null).ToList();
Weirdly, I seem to have done this on my development version of the site and don't know where I made the change to upload it ot the live version. Guess I need copy everything up
Admin area search: Exclude variants
Is there anyway to set the internal searhc to only display parent products?
There is. You can replace our standard search with your own by modifying the admin UI. It would be pretty trivial to do the search and further filter the results before returning them to the user.
Extending uCommerce Admin will tell you what you need to know about extending/modifying the UI.
You can perform a search by using the class ProductSearchQuery and setting the appropriate fields on that.
To execute the search you go
Hope this helps.
Weirdly, I seem to have done this on my development version of the site and don't know where I made the change to upload it ot the live version. Guess I need copy everything up
Did you get it going?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.