Get field values

Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules
Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
vikram
Posts: 22
Joined: 16 Jul 2015, 06:38
Location: India
Contact:

Get field values

Post by vikram » 28 Aug 2015, 08:13

Hi,

I have items after a search execution. I need to access it non-basic values like price, description ect. How to do that in the php code. Some thing like the follow is not working.

Code: Select all

$price = $item->getRefItems( 'price', 'default', 'default' );
The following works fine:

Code: Select all

$item->getCode();

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

Re: Get field values

Post by aimeos » 29 Aug 2015, 22:39

vikram wrote: I have items after a search execution. I need to access it non-basic values like price, description ect. How to do that in the php code. Some thing like the follow is not working.

Code: Select all

$price = $item->getRefItems( 'price', 'default', 'default' );
It works if you tell searchItems() that you want to to fetch the price items at well:

Code: Select all

$manager->searchItems( $criteria, array( 'price' ) );

Post Reply