Show attribute in catalog list with subpart

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!
Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Show attribute in catalog list with subpart

Post by Moritz » 07 Nov 2018, 14:52

Hello,

First of all I want say that I very like your shop system. Thanks for that.

Now to my problem.
I want to show specific attributes of a type (e.g. width) for each item in the catalog list.
My decision is to use a sub-subpart of the item subpart for this. Is that the right way?

For testing I was able to create a subpart for catalog detail and replace the service subpart with it.
But I don't accomplish to change the order of the parts in the catalog detail view.
With TypoScript I can only use 'service' and 'seen' inside this path: plugin.tx_aimeos.settings.client.html.catalog.detail.standard.subpart
Can you explain how to change the order of catalog detail elements with TypoScript e.g. move the add-basket button to the top?

But back to the main problem.
I need an working example how to create a subpart within the item in a catalog list and the necessary TypoScript configuration to display it on the right place.
I've tried the last days much variants but nothing works to my fits.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

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

Re: Show attribute in catalog list with subpart

Post by aimeos » 07 Nov 2018, 23:09

If it's a selection product with articles containing variant attributes (e.g. width), then you can simply enable this setting:
https://aimeos.org/docs/Configuration/C ... basket-add
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: Show attribute in catalog list with subpart

Post by Moritz » 08 Nov 2018, 10:06

I want to show the attributes from characteristics (in detail view shown between description and properties), not from options. And only ones of a specific type like width or color, not all.

And do you have a working example for creating a subpart in catalog list?
I've created the subpart class in my_ext/client/html/src/Client/Html/Catalog/Lists/Mysubpart/Standard.html and the templatefile in my_ext/client/html/template/catalog/lists/mysubpart-body-standard.html.
How it is possible to use this now in catalog list?
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

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

Re: Show attribute in catalog list with subpart

Post by aimeos » 09 Nov 2018, 20:54

A subpart won't help in your case. You have to adapt the template and add "attribute" to this setting:
https://aimeos.org/docs/Configuration/C ... ts/domains
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply