Show product catalog in catalog/lists

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
SaurabhSharma
Posts: 12
Joined: 23 Feb 2020, 10:32

Show product catalog in catalog/lists

Post by SaurabhSharma » 03 Mar 2020, 16:54

I want to access products categories in products grid. In template file "common/partials/products-standard.php"

Code: Select all

$productItem->getRefItems( 'catalog', 'default', 'default' )

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

Re: Show product catalog in catalog/lists

Post by aimeos » 04 Mar 2020, 15:21

That's currently only possible in dev-master. I think we can port that back to 2019.10 and then it will be:

Code: Select all

$product->getCatalogItems();
to retrive the categories.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

SaurabhSharma
Posts: 12
Joined: 23 Feb 2020, 10:32

Re: Show product catalog in catalog/lists

Post by SaurabhSharma » 05 Mar 2020, 15:38

Can you guide or link some documentation?
It'd be very helpful.

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

Re: Show product catalog in catalog/lists

Post by aimeos » 05 Mar 2020, 18:16

Please execute

Code: Select all

composer req aimeos/aimeos-core:2019.10.x-dev
Then, the latest 2019.10-dev version will be installed and you can use the new method. Make sure you add "catalog" to this configuration:
https://aimeos.org/docs/Configuration/C ... st/domains
Otherwise, the method will return an empty array.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply