Action buttons in list view

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
NewUser
Posts: 8
Joined: 22 Mar 2017, 05:01

Action buttons in list view

Post by NewUser » 24 Mar 2017, 05:32

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.
Attachments
cart.png
cart.png (133.7 KiB) Viewed 4088 times

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

Re: Action buttons in list view

Post by aimeos » 24 Mar 2017, 07:58

Yes, you can simply copy the code from the detail template to the list template:
https://github.com/aimeos/ai-client-htm ... efault.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Action buttons in list view

Post by aimeos » 24 Mar 2017, 13:29

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

NewUser
Posts: 8
Joined: 22 Mar 2017, 05:01

Re: Action buttons in list view

Post by NewUser » 27 Mar 2017, 05:06

Thank you.. Itz working.

columbo
Advanced
Posts: 123
Joined: 09 Oct 2019, 09:42

Re: Action buttons in list view

Post by columbo » 31 Jan 2020, 15:09

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

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

Re: Action buttons in list view

Post by aimeos » 01 Feb 2020, 10:21

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
loeffe1
Posts: 49
Joined: 21 Feb 2020, 10:33

Re: Action buttons in list view

Post by loeffe1 » 21 Feb 2020, 10:36

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

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

Re: Action buttons in list view

Post by aimeos » 21 Feb 2020, 10:53

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

User avatar
loeffe1
Posts: 49
Joined: 21 Feb 2020, 10:33

Re: Action buttons in list view

Post by loeffe1 » 21 Feb 2020, 11:01

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

Post Reply