Categories not showing up in select field of aimeos plugin

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

Categories not showing up in select field of aimeos plugin

Post by pixls » 30 May 2017, 14:50

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

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

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

Post by aimeos » 30 May 2017, 20:32

Does the category doesn't show up or the products in the frontend?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

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

Post by pixls » 31 May 2017, 06:20

the category doesn't show up in the content element "catalog list" in the backend.

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

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

Post 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?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

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

Post 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?
Attachments
first screenshot: database table
first screenshot: database table
1_shop-database.PNG (40.8 KiB) Viewed 3877 times
second screenshot: tree-list in the aimeos module
second screenshot: tree-list in the aimeos module
2_shop-categories.PNG (15.72 KiB) Viewed 3877 times
third screenshot: "catalog list" plugin content element in the backend with the missing categories to choose from
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 3877 times

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

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

Post 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?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

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

Post by pixls » 01 Jun 2017, 09:59

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.

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

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

Post by aimeos » 01 Jun 2017, 10:03

Is something in your Apache error.log file due to this line?
https://github.com/aimeos/aimeos-typo3/ ... og.php#L64
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

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

Post 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 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&

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

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

Post by aimeos » 01 Jun 2017, 16:25

Then you have configured a non-existing Aimeos site in the TYPO3 page TS for that page or a parent page
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply