I allow users to create their own products using the default commerce product add form (/admin/commerce/products/add/product). Programatically, I need to get the product ID and do more processing.
I have a submit handler attached like this (I use it to redirect users to a custom page):
$form['actions']['submit']['#submit'] = 'my_module_redirect_handler';
However, I don't seem to have any information about the newly added node. How can I obtain it?