get physcial properties with pin product

Help for integrating the Laravel package
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!
User avatar
GülsümAkça
Posts: 57
Joined: 20 Nov 2020, 13:30

get physcial properties with pin product

Post by GülsümAkça » 04 Jan 2021, 11:00

I want to show physical properties like package-weight package-height besides pin products, how can I do this?
thank you

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

Re: get physcial properties with pin product

Post by aimeos » 05 Jan 2021, 09:01

Add "product/property" to the list of fetched domains in https://aimeos.org/docs/2020.x/config/c ... n/#domains.

Then, you can access the properties using:

Code: Select all

$weight = $productItem->getProperties( 'package-weight' )->first()
https://github.com/aimeos/aimeos-core/b ... ce.php#L67
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply