how to don't show home category in catalog/filter?
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!
how to don't show home category in catalog/filter?
i use aimeos/laravel 2020.07
i want to show categories in catalog/filter from next level after home, because the home level is useless (users can click on logo or another button to go home page/cagetory.
i want to show categories like:
instead of
what can i do for this?
i want to show categories in catalog/filter from next level after home, because the home level is useless (users can click on logo or another button to go home page/cagetory.
i want to show categories like:
Code: Select all
shoes
bags
shirts
Code: Select all
home
shoes
bags
shirts
Re: how to don't show home category in catalog/filter?
Just hide the root category using CSS
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
- parmonov98
- Posts: 33
- Joined: 24 Sep 2020, 12:12
Re: how to don't show home category in catalog/filter?
YOU CAN DO LIKE THIS TO GET RID OF ROOT CATEGORY: https://imgur.com/nn7sQPaAhmad wrote: ↑14 Sep 2020, 06:23 i use aimeos/laravel 2020.07
i want to show categories in catalog/filter from next level after home, because the home level is useless (users can click on logo or another button to go home page/cagetory.
i want to show categories like:instead ofCode: Select all
shoes bags shirts
what can i do for this?Code: Select all
home shoes bags shirts
Re: how to don't show home category in catalog/filter?
getName() is a really bad choice, you should use getCode() instead.
Alternatively, you can copy the tree-body.php template (https://github.com/aimeos/ai-client-htm ... rd.php#L75) and hand over the children directly:
Alternatively, you can copy the tree-body.php template (https://github.com/aimeos/ai-client-htm ... rd.php#L75) and hand over the children directly:
Code: Select all
'nodes' => [$this->treeCatalogTree->getChildren()],
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
- parmonov98
- Posts: 33
- Joined: 24 Sep 2020, 12:12
Re: how to don't show home category in catalog/filter?
if you meant the situation when I change the language, yeah! you're right. I didn't get to the language point. that was a quick solution for me.aimeos wrote: ↑12 Oct 2020, 11:44 getName() is a really bad choice, you should use getCode() instead.
Alternatively, you can copy the tree-body.php template (https://github.com/aimeos/ai-client-htm ... rd.php#L75) and hand over the children directly:Code: Select all
'nodes' => [$this->treeCatalogTree->getChildren()],
How do you find other methods? (getCode())
let's rephrase the question: How can we find them list of methods?
Re: how to don't show home category in catalog/filter?
You can find all methods of the catalog items here:
https://github.com/aimeos/aimeos-core/b ... andard.php
https://github.com/aimeos/aimeos-core/b ... andard.php
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