Orders api returning variants product id

This PR is to solve issues #2561 and #2565.