Guest User

Untitled

a guest
Oct 7th, 2013
62
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $query = new EntityFieldQuery();
  2. $query->entityCondition('entity_type', 'commerce_product')
  3.       ->propertyCondition('status', 1)
  4.       ->propertyCondition('type', 'games')
  5.       ->fieldCondition('field_platform', 'tid', 76) // 76 is the ID for PlayStation 3
  6.       ->fieldOrderBy('commerce_price', 'amount', 'ASC');
  7. $result = $query->execute();
  8.  
  9. ------
  10.  
  11. Returns:
  12.  
  13. array(0) {
  14. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×