Action buttons in list view
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Action buttons in list view
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 (133.7 KiB) Viewed 4264 times
Re: Action buttons in list view
Yes, you can simply copy the code from the detail template to the list template:
https://github.com/aimeos/ai-client-htm ... efault.php
https://github.com/aimeos/ai-client-htm ... efault.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Action buttons in list view
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.
- 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, give us a star
If you like Aimeos, give us a star
Re: Action buttons in list view
Thank you.. Itz working.
Re: Action buttons in list view
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
I'd like to add the watch- and favorite list buttons on our catalog list.
Thank's
Re: Action buttons in list view
Yes, only the file names changed:
- https://github.com/aimeos/ai-client-htm ... andard.php
- https://github.com/aimeos/ai-client-htm ... #L310-L328
- https://github.com/aimeos/ai-client-htm ... andard.php
- https://github.com/aimeos/ai-client-htm ... #L310-L328
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Action buttons in list view
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
Thanks
Re: Action buttons in list view
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
- 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, give us a star
If you like Aimeos, give us a star
Re: Action buttons in list view
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
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