How to add favorite add wishlist in catalog/lists?
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- parmonov98
- Posts: 33
- Joined: 24 Sep 2020, 12:12
How to add favorite add wishlist in catalog/lists?
How to add favorite add wishlist in catalog/lists?
I want this button in catalog/lists template. How to approach?
https://imgur.com/6vPesZi
I want this button in catalog/lists template. How to approach?
https://imgur.com/6vPesZi
Re: How to add favorite add wishlist in catalog/lists?
Use the catalog/action-standard.php partial:
https://github.com/aimeos/ai-client-htm ... andard.php
via the partial view helper:
https://aimeos.org/docs/latest/infrastr ... s/#partial
in the list items template and the product partial:
- https://github.com/aimeos/ai-client-htm ... y-list.php
- https://github.com/aimeos/ai-client-htm ... andard.php
e.g.:
https://github.com/aimeos/ai-client-htm ... andard.php
via the partial view helper:
https://aimeos.org/docs/latest/infrastr ... s/#partial
in the list items template and the product partial:
- https://github.com/aimeos/ai-client-htm ... y-list.php
- https://github.com/aimeos/ai-client-htm ... andard.php
e.g.:
Code: Select all
<?= $this->partial('catalog/action-standard', ['productItem' => $productItem]) ?>
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: How to add favorite add wishlist in catalog/lists?
Let me clarify a little:
Code to insert into ext/<your_ext>/client/html/templates/common/partials/products-standard.php
And don't forget to check CSS for rendered action items.
Code to insert into ext/<your_ext>/client/html/templates/common/partials/products-standard.php
Code: Select all
<?= $this->partial($this->config( 'client/html/catalog/partials/actions', 'catalog/actions-partial-standard' ), ['productItem' => $productItem]) ?>