-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search where('name', 'like', 'abcde%') possible ? #29
Comments
Hello @piloufaces Thanks for creating the issue. Sorry, currently
Search functionality match your query both Title and Description. If match any result it returns the results. Below I added which
Title (covered by ?search=x)
SKU (covered by ?sku=x)
Type (covered by ?type=x)
Category (covered by ?category=1)
Tag (covered by ?tag=1)
Date (covered by ?after=YYYY-MM-DD and ?before=YYYY-MM-DD)
Attributes (covered by attribute=x and attribute_term=1)
Stock: In stock, Out of Stock (covered by ?in_stock=true/false)
Featured product (covered by ?featured=true/false)
Price (covered by ?min_price=1&max_price=10)
Shipping classes (covered by ?shipping_class=1)
Tax classes (covered by ?tax_class=x) I've a plan to add it. I'll notify if I add. Thanks |
Hello @piloufaces Good news. I added dynamic where clause in version
Search
Sku
Type
Category
Tag
Date before
Date before
Attribute
Attribute Term
In Stock
Out of Stock
Featured product
Min price
Max price
Shipping classes
Tax classes
I hope you enjoy the code. If you have any other issue you can reply with details. Thanks |
Hi @Codexshaper and @maab16 |
Hi,
I have an issue when I try to query the Woocommerce products using Where ... like
Product::where('name', 'like', 'abcde%')->get();
Possible or do we need to setup a filter based on all products ?
The text was updated successfully, but these errors were encountered: