Category Page
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!
-
- Posts: 8
- Joined: 04 Jan 2020, 04:47
Category Page
I want to show a page with just one category on it (ie: all products from one category).
I can do this below to pull the category page, but how do I specify the correct category? I can't figure out how to pass the category ID variable into it.
I can do this below to pull the category page, but how do I specify the correct category? I can't figure out how to pass the category ID variable into it.
Code: Select all
Route::match( array( 'GET', 'POST' ), '/my-category/', array(
'as' => 'aimeos_shop_catalog',
'uses' => '\Aimeos\Shop\Controller\CatalogController@listAction'
)
);
Re: Category Page
You have to create your own controller and action with a copy of the catalog::list action. Then, set the category ID as default value in that action:
See: https://aimeos.org/docs/Configuration/C ... id-default
and https://aimeos.org/docs/Laravel/Extend_Aimeos
Code: Select all
$context->getConfig()->set( 'client/html/catalog/lists/catid-default', 123 );
and https://aimeos.org/docs/Laravel/Extend_Aimeos
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
