api request
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
api request
Hello,
This api request returns the node category:
How can get the subcategories for this node category?
This api request returns the node category:
Code: Select all
var params = {};
var result = $.ajax({
method: "GET",
dataType: "json",
url: '/jsonapi/default/catalog',
data: {}
});
result.done( function( result ) {
console.log( result.data );
});
Re: api request
Add "&include=catalog" to your request URL:
https://aimeos.org/docs/latest/frontend ... categories
https://aimeos.org/docs/latest/frontend ... categories
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
Re: api request
no, I want category level 3 for the node category 1
Re: api request
There's a configuration option which allows fetching categories of several levels at once:
https://aimeos.org/docs/2022.x/config/c ... alog/#deep
https://aimeos.org/docs/2022.x/config/c ... alog/#deep
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
Re: api request
I change it, but nothing changed on the response !
I want childrens of category number 1.
I want childrens of category number 1.
Re: api request
You have to set the configuration AND pass the parameter "&include=catalog"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star