Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = new EntityFieldQuery();
- $query->entityCondition('entity_type', 'commerce_product')
- ->propertyCondition('status', 1)
- ->propertyCondition('type', 'games')
- ->fieldCondition('field_platform', 'tid', 76) // 76 is the ID for PlayStation 3
- ->fieldOrderBy('commerce_price', 'amount', 'ASC');
- $result = $query->execute();
- ------
- Returns:
- array(0) {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement