How to create commerce product content using date repeat entity module? I am using date repeat entity module in a content type say Movies to successfully clone the nodes.I also have a commerce product reference field in that content type which is working fine when I am not using repeat date.
I want to be able to create a new commerce product content for each node in the series when using repeat date.(while creating the Movies node I can see product fields like SKU,product title etc.)

For example,
I am creating a new Movies having start as 1st Jan 2016 and end date as 2nd Jan 2016.I want to repeat this event for every Friday till 31st Jan.
Now there will be 5 nodes created automatically.
how do i create a new commerce product content for each of these nodes?

Thanks.
I'm not too familiar with Date repeat entity module, but why don't you try implementing hook_node_insert() in a custom module, to handle creating a new product every time a a new node is created:

/**
 * Implements hook_node_insert().
 */
function my_module_node_insert($node) {

  //check type and that no product set previously
  if($node-&gt;type == 'my_type') {

    //create product
    $cp = commerce_product_new('product');
    $cp-&gt;is_new = TRUE;
    $cp-&gt;revision_id = NULL;
    $cp-&gt;uid = 1;
    $cp-&gt;status = 1;
    $cp-&gt;created = $cp-&gt;changed = time();
    $cp-&gt;sku = 'My SKU';
    $cp-&gt;title = 'My Product';
    $cp-&gt;language = LANGUAGE_NONE;
    $cp-&gt;commerce_price = array(LANGUAGE_NONE =&gt; array( 0 =&gt; array(
      'amount' =&gt; 1000, //$10.00
      'currency_code' =&gt; 'USD',
    )));

    //save new product
    commerce_product_save($cp);

    //set reference field
    $node-&gt;field_product['und'][0]['product_id'] = $cp-&gt;product_id;

    //update node
    node_save($node);
  }
}


I haven't tested this code, but this would be the general approach I would try.

This would only work if the Date repeat module invoked this hook though.