Page 1 of 1

Action buttons in list view

Posted: 24 Mar 2017, 05:32
by NewUser
Can we add the action button features like Add to cart, pin, watch, wishlist in product list page?? I saw that it can be implemented in detail view. Is it possible with list view?? See the attachment for reference.

Re: Action buttons in list view

Posted: 24 Mar 2017, 07:58
by aimeos
Yes, you can simply copy the code from the detail template to the list template:
https://github.com/aimeos/ai-client-htm ... efault.php

Re: Action buttons in list view

Posted: 24 Mar 2017, 13:29
by aimeos
We simplified that a bit further and replaced the actions subpart with a partial just like for the social media links:
- https://github.com/aimeos/ai-client-htm ... t.php#L261
- https://github.com/aimeos/ai-client-htm ... efault.php

This will be part of the next release in April.

Re: Action buttons in list view

Posted: 27 Mar 2017, 05:06
by NewUser
Thank you.. Itz working.

Re: Action buttons in list view

Posted: 31 Jan 2020, 15:09
by columbo
is this still valid for version 2019.10? - unfortunately I didn't get it to work
I'd like to add the watch- and favorite list buttons on our catalog list.

Thank's

Re: Action buttons in list view

Posted: 01 Feb 2020, 10:21
by aimeos

Re: Action buttons in list view

Posted: 21 Feb 2020, 10:36
by loeffe1
I am receiving a non-recoverable error when copying that partial to my list template. Could someone share the exact code they used in their list template to add the product actions?
Thanks

Re: Action buttons in list view

Posted: 21 Feb 2020, 10:53
by aimeos
Make sure your use the templates that correspond you to your Aimeos version, e.g. for 2019.10:
- https://github.com/aimeos/ai-client-htm ... andard.php
- https://github.com/aimeos/ai-client-htm ... andard.php

Re: Action buttons in list view

Posted: 21 Feb 2020, 11:01
by loeffe1
Thanks for the super fast reply!

I am using the aimeos typo3 extension and had to uncomment the for each loop the product listing items is wrapped in and change $this->productItem-> to $productItem-> and now it seems to be working