nozzlegear / ShopifySharp

ShopifySharp is a .NET library that helps developers easily authenticate with and manage Shopify stores.
https://nozzlegear.com/shopify-development-handbook
MIT License
742 stars 309 forks source link

Search product by part of title #953

Open WillyBilly90 opened 10 months ago

WillyBilly90 commented 10 months ago

I tried to create a searchfilter for ListAsync, but it only works when I fill in the whole title and not a part of a title. Example, I try to find a HP 302 cardridge:

public static async Task GetProductBySearchTermAsync()
{
    var service = new ProductService(myShopifyUrl, shopAccessToken);

    var filter = new ProductListFilter
    {        
        Title = "HP"
    };

    ListResult<Product> ps = await service.ListAsync(filter);
}

The listresult stays empty, but when filter with Title="HP 302 Black" it will be found.

How can I use the ProductListFilter with a part of the title ?

Loocist23 commented 6 months ago

any news ?

WillyBilly90 commented 6 months ago

No news. My temporary solution is get all products and then search in the result, but it generates a lot of traffic for nothing.

Loocist23 commented 6 months ago

yeah thats what i was thinking

Loocist23 commented 6 months ago

but thanks for your answer