Get field values

Questions around the TYPO3 integration and plugins
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!
vikram
Posts: 23
Joined: 16 Jul 2015, 06:38

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: 7836
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