how to get all orders filtered by one product using EntityFieldQuery?

28/07/2018


The below code will filter by date but what i really need is to filter by product.

 $query_invoice = new EntityFieldQuery();
 $query_invoice->entityCondition('entity_type', 'commerce_order')
               ->entityCondition('bundle', 'invoice')
            // ->propertyCondition('status', NODE_PUBLISHED)
               ->fieldCondition('field_commerce_billy_i_date','value',$tomorrow_date_str,'=');

 $result_invoice = $query_invoice->execute();

Any help please ?

قالب وردپرس