Skip to main content
11 events
when toggle format what by license comment
Sep 8, 2020 at 15:25 comment added Shubham Rohila What happened to this? I dont see the expected solution in the chat. Did i miss something? How do i get the details of the items in parent id only?
Feb 16, 2018 at 6:25 vote accept MePo
Feb 12, 2018 at 9:59 comment added sissy Let us continue this discussion in chat.
Feb 12, 2018 at 9:52 comment added MePo That is the problem i am getting 50 items http://www.myshop.com/rest/V1/categories/21/products with this with their sku which is exactly as on web, but when i do it like http://www.myshop.com/rest/V1/products? searchCriteria[filter_groups][0][filters][0][field]=category_id&searchCriteria[filter_groups][0][filters][0][value]=21 it returns me 0
Feb 12, 2018 at 9:48 comment added sissy Are you sure about the id you're using? I mean, if there are 50 items in that category but it returns 0, probably you're using a wrong id...
Feb 12, 2018 at 9:24 comment added MePo True, But the problem with that is if you do it on for example TOPS (from example data) it will return 0, while there are 50 items, and also this will return all items (their colors and everything)
Feb 12, 2018 at 9:21 comment added sissy Ok, i see now the problem of the call to category interface, but I don't understand the problem of the call http://www.myshop.com/rest/V1/products? searchCriteria[filter_groups][0][filters][0][field]=category_id&searchCriteria[filter_groups][0][filters][0][value]=21. This returns all products data, not only their skus...
Feb 12, 2018 at 9:10 comment added MePo No problem, i edited question i was at fault. I taught it was somehow possible. i do get the ID, and search by that ID , but the problem is getting all product details as i get only sku
Feb 12, 2018 at 8:59 comment added sissy I'm sorry, I was suggesting how to solve the first point for a too long URL and didn't understand you wanted to search by category name. As far as I know you cannot search directly by category name, you first need to get the id.
Feb 12, 2018 at 8:54 comment added MePo But this will return me Products with name like Leggings, I need Products by Category ID or Category Name which i get from myshop.com/rest/V1/categories/21/products . Yes i know but that will return me Products SKU, and i need all product data
Feb 12, 2018 at 8:45 history answered sissy CC BY-SA 3.0