Page 1 of 1

Get field values

Posted: 28 Aug 2015, 08:13
by vikram
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();

Re: Get field values

Posted: 29 Aug 2015, 22:39
by aimeos
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' ) );