Page 1 of 2

Categories not showing up in select field of aimeos plugin

Posted: 30 May 2017, 14:50
by pixls
Hi

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

Re: Categories not showing up in select field of aimeos plug

Posted: 30 May 2017, 20:32
by aimeos
Does the category doesn't show up or the products in the frontend?

Re: Categories not showing up in select field of aimeos plug

Posted: 31 May 2017, 06:20
by pixls
the category doesn't show up in the content element "catalog list" in the backend.

Re: Categories not showing up in select field of aimeos plug

Posted: 31 May 2017, 17:50
by aimeos
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?

Re: Categories not showing up in select field of aimeos plug

Posted: 01 Jun 2017, 07:24
by pixls
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?

Re: Categories not showing up in select field of aimeos plug

Posted: 01 Jun 2017, 09:13
by aimeos
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?

Re: Categories not showing up in select field of aimeos plug

Posted: 01 Jun 2017, 09:59
by pixls
I've deleted the 2 root categories with id 2 and 3 in the database. This didn't change anything though. Categories are still not showing up for selection.

Re: Categories not showing up in select field of aimeos plug

Posted: 01 Jun 2017, 10:03
by aimeos
Is something in your Apache error.log file due to this line?
https://github.com/aimeos/aimeos-typo3/ ... og.php#L64

Re: Categories not showing up in select field of aimeos plug

Posted: 01 Jun 2017, 11:28
by pixls
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 85.4.187.125:54783] 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&

Re: Categories not showing up in select field of aimeos plug

Posted: 01 Jun 2017, 16:25
by aimeos
Then you have configured a non-existing Aimeos site in the TYPO3 page TS for that page or a parent page