Product in mutilple category #146
-
Hi Swell Team, I follow your docs in link below I have few questions: I have to custom some pages for speciall business. Is there any rest API support add product to mutilple category ? More over, I want to retrieve product from mutilple category, is swell rest support it ? Filtering like Mongo how about $In term and others complex filter ? Event I look for in https://developers.swell.is/frontend-api/products#list-products-by-category |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @balanh-development , You can use the
To retrieve products from multiple categories, you can pass in a list of categories:
As to your question regarding filtering on the frontend, this would be done by passing in attributes within the
|
Beta Was this translation helpful? Give feedback.
Hi @balanh-development ,
You can use the
/categories:products
endpoint in order to assign the product to categories. You would pass in the category id as theparent_id
.To retrieve products from multiple categories, you can pass in a list of categories:
As to your question regarding filtering on the frontend, this would be done by passing in attributes within the
$filters
object like you describe (size, color, etc) along with the category.