Can super admin hide some categories for vendors
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
Can super admin hide some categories for vendors
Hello,
Can I hide some categories and show others from the merchant admin interface?
Can I hide some categories and show others from the merchant admin interface?
Re: Can super admin hide some categories for vendors
In the admin backend only if you customize the code. If you write your own code, you have full control over the displayed 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: Can super admin hide some categories for vendors
May I will need to add new column in catalog table to hide or show cat, right?
Re: Can super admin hide some categories for vendors
You can use the catalog.status property (mshop_catalog.status column) and it's values to hide 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: Can super admin hide some categories for vendors
How to filter by catalog status (after get children)?
Code: Select all
\Aimeos\MShop::create( $context, 'catalog' )->getTree()->getChildren()
Re: Can super admin hide some categories for vendors
Code: Select all
\Aimeos\MShop::create( $context, 'catalog' )
->getTree()
->getChildren()
->filter( function( $item ) {
return $item->getStatus() > 0;
} );
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