Custom Home Page

Help for integrating the Laravel package
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!
m_hoffmann
Posts: 3
Joined: 09 Aug 2022, 12:34

Custom Home Page

Post by m_hoffmann » 09 Aug 2022, 12:39

Hi there!

I am starting out with a new Aimeos project. Our customer has an existing laravel project for the website and wants to integrate the aimeos shop. They requested help with building a custom landing page for the shop that shows the newest 4 items instead of the standard all items list view.

What would be a good way to go about this? Is there any way to further filter the $aibody['catalog/lists'] variable in the blade file? Then I could simply overwrite the view. Or do I need to add a custom extension for something like this?

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Custom Home Page

Post by aimeos » 09 Aug 2022, 13:25

The first option is using the aimeos/ai-cms-grapesjs extension, where editors can add custom product slider to the home page and select from which category these product should be displayed:
https://github.com/aimeos/ai-cms-grapesjs

The second option is to add the standard catalog/lists component and configure a default sorting of "-ctime" (and a default category ID if required):
- Default sorting: https://aimeos.org/docs/2022.x/config/c ... ists/#sort
- Default category: https://aimeos.org/docs/2022.x/config/c ... id-default
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

m_hoffmann
Posts: 3
Joined: 09 Aug 2022, 12:34

Re: Custom Home Page

Post by m_hoffmann » 10 Aug 2022, 11:16

Can the configurations be set for only a certain view or only globally in the config/shop.php? Our client wants the newest 4 items on the landing page and my idea was to replace the blade file, but if i change the configuration of the lists component it affects the entire shop right?

Thanks for your help!

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Custom Home Page

Post by aimeos » 12 Aug 2022, 06:40

This is global only. If you want different product lists at different pages, you should use the CMS package which offers placing product lists by the editor that depend on the settings added for the product list in the CMS module.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply