Skip to content
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

Product endpoint not working proper when pass search string and category #50

Open
jaysathvara1998 opened this issue Feb 7, 2021 · 1 comment

Comments

@jaysathvara1998
Copy link

jaysathvara1998 commented Feb 7, 2021

endpoint : wp-json/wc/v3/products

consumer_key: ck_##############################
consumer_secret: cs_#############################
search:mdh
per_page:10
page:1
orderby:modified
order:desc
category:37

Above is the request parameter when I try to pass both category id and the search string i always get the blank list, I also cross-check that category ID 37 have items with MDH name

Please help me if anyone has a solution for this issue.

Thanks in advance.

@behradkhadem
Copy link

Your code isn't specific, but you should note that category must be a string, not int. For example:
products = await wooCommerceCredentials.getProducts(category: "25");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants