Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4251 by pixls
30 May 2017, 14:50

I created a category and assigned products to it. How ever in the content element plugin for the catalog list I cant select those. I would like to filter the products via the categories.

The select field is called "Default category if no parameter is available" but the options are not showing up.

Im on TYPO3 7.6.18, PHP 7.0.11 and aimeos 17.4.1
#4267 by aimeos
31 May 2017, 17:50
It works well in our test environment using Aimeos 17.4.1. Can you please post a screenshot of your category tree you've created and which contains the category not shown?

Is the category stored in the mshop_catalog table? Do you use different databases for one Aimeos instance?
#4284 by pixls
01 Jun 2017, 07:24
Im using only one database for TYPO3 and aimeos. The categories are stored in the database table "mshop_catalog" (see screenshot). The second screenshot shows the tree view for the categories in the aimeos module.

As you can see in the third screenshot the categories are not showing up as an option in the "catalog list" content element plugin.

As far as I understand it this is how you would display only a specific category in the catalog list. Correct?
first screenshot: database table
1_shop-database.PNG (40.8 KiB) Viewed 450 times
second screenshot: tree-list in the aimeos module
2_shop-categories.PNG (15.72 KiB) Viewed 450 times
third screenshot: "catalog list" plugin content element in the backend with the missing categories to choose from
3_shop-plugin.PNG (22.08 KiB) Viewed 450 times
#4285 by aimeos
01 Jun 2017, 09:13
pixls wrote:As far as I understand it this is how you would display only a specific category in the catalog list. Correct?

Yes, that's correct.
Your first screenshot shows three root categories for that site (standard, schreinerei, mechanik), which might be the problem. Can you remove the records with the IDs 2 and 3?
#4290 by pixls
01 Jun 2017, 11:28
I'm getting the following catalog related error in the log.

Code: Select all[Thu Jun 01 11:57:35.973114 2017] [proxy_fcgi:error] [pid 21580] [client] AH01071: Got error 'PHP message: Site for code "test" not found\n#0 [internal function]: Aimeos\\MShop\\Locale\\Manager\\Standard->bootstrap('test', '', '', false)\n#1 /var/www/vhosts/xxx/yyy/typo3conf/ext/aimeos_pay/Resources/Libraries/aimeos/aimeos-core/lib/mshoplib/src/MShop/Common/Manager/Decorator/Base.php(51): call_user_func_array(Array, Array)\n#2 /var/www/vhosts/xxx/yyy/typo3conf/ext/aimeos/Classes/Flexform/Catalog.php(54): Aimeos\\MShop\\Common\\Manager\\Decorator\\Base->__call('bootstrap', Array)\n#3 [internal function]: Aimeos\\Aimeos\\Flexform\\Catalog->getCategories(Array, Object(TYPO3\\CMS\\Backend\\Form\\FormDataProvider\\TcaSelectItems))\n#4 /var/www/vhosts/xxx/yyy/typo3_src-7.6.18/typo3/sysext/core/Classes/Utility/GeneralUtility.php(4377): call_user_func_array(Array, Array)\n#5 /var/www/vhosts/xxx/yyy/typo3_src-7.6.18/typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php(70): TYPO3\\CMS\\Core\\Utility\\GeneralUtility::callUserFunction...\n', referer: http://yyy/typo3/index.php?M=web_layout&moduleToken=20515259124287af8a7e2ea9b85f6fafe4f861a1&id=355&