Page 1 of 1

Show attribute in catalog list with subpart

Posted: 07 Nov 2018, 14:52
by Moritz
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.

Re: Show attribute in catalog list with subpart

Posted: 07 Nov 2018, 23:09
by aimeos
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

Re: Show attribute in catalog list with subpart

Posted: 08 Nov 2018, 10:06
by Moritz
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?

Re: Show attribute in catalog list with subpart

Posted: 09 Nov 2018, 20:54
by aimeos
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