How to access the site label in the product template
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!
How to access the site label in the product template
Hi,
In the product template client/html/templates/common/partials/products-standard.php I can access the site id via $productItem -> getSiteId (). How can I access the site label in this product template?
Thank your for your help.
--
aimeos: 2019.10.4
ai-site extension
symfony: 4.4
php: 7.2
ubuntu: 18
In the product template client/html/templates/common/partials/products-standard.php I can access the site id via $productItem -> getSiteId (). How can I access the site label in this product template?
Thank your for your help.
--
aimeos: 2019.10.4
ai-site extension
symfony: 4.4
php: 7.2
ubuntu: 18
Re: How to access the site label in the product template
You have to write a decorator that passes all site labels of the available sites to the template (https://aimeos.org/docs/Developers/Html ... components). To get the site items, you have to use the searchItems() method of the locale site manager.
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 access the site label in the product template
Thank you for your help. It works.