Tags/topics: 

2 Answers

Vote up!
0
Vote down!

$query = new EntityFieldQuery();
$query->entityCondition('entity_type', 'node')
->entityCondition('bundle', 'product_display')
->propertyCondition('status', 1)
->fieldCondition('field_TERM', 'tid', $tid, '=')

$result = $query->execute();

You can then feed the ids from that result into commerce_load_multiple using something like:

array_keys($result['node'])

Andy @ BlueFusion
Posted: Sep 30, 2014
Vote up!
0
Vote down!

thank you very much. But may be exist something like "super_function($tid)", which return "array_keys($result['node'])"?

Answer by: Andrey Avakov
Posted: Oct 1, 2014