Product Properties on Home
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Product Properties on Home
Hi, I've added the weight in Product properties. How can I access this property on the homepage of my shop? I was looking in the products-standard template but didn't get it.
Any hint?
Thanks in advance
Ralf
Any hint?
Thanks in advance
Ralf
Re: Product Properties on Home
The idea is to calculate the price für 1000 ml if the product has a filling of 250 ml. Therefore I need to get the Product Properties (in backend aimeos module defined in "Physical"). Another option would be to store the size as attribute, but how to get the attributes in list view?
Thank you very much for any hints
Thank you very much for any hints
Re: Product Properties on Home
You can get both in the list view if you configure the data domains that are fetched along with the product data in the catalog list component:
https://aimeos.org/docs/Configuration/C ... ts/domains
Either add "product/property" or "attribute" to the configured domains.
https://aimeos.org/docs/Configuration/C ... ts/domains
Either add "product/property" or "attribute" to the configured domains.
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: Product Properties on Home
Thank you very much. I've added "product/property" to the domain now. How can I access a property? I've tried the following:
$productItem->getPropertyItems('package-weight', true);
Thanks
$productItem->getPropertyItems('package-weight', true);
Thanks
Re: Product Properties on Home
Yes, that should return a list of "package-weight" property items (usually only one). You can also use
which returns the values only.
If not check that your configuration is correct and passed to Aimeos if you configured it via TypoScript.
Code: Select all
$productItem->getProperties( 'package-weight' )
If not check that your configuration is correct and passed to Aimeos if you configured it via TypoScript.
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