Programmatically load the contents of a Product in a particular product type I am developing an Ecommerce site and I am using Drupal-commerce module for it. I have an issue regarding loading the contents of a product which is: How can I programmatically get the contents of all the products in a particular product type?
This can be done with an EntityFieldQuery:

&lt;?php
  $query = new EntityFieldQuery();
  $result = $query-&gt;entityCondition('entity_type', 'node')
    -&gt;entityCondition('bundle', 'product')
    -&gt;execute();
  $nodes = node_load_multiple(array_keys($result['node']));
?&gt;