After logical type field adding to commerce_product I got problem.
_commerce_product_display_get_current_product_id() function does not return chosen commerce_product id cause new field gets to _commerce_product_attribute_field_names array.
I was had to fix this with commerce_cart_add_to_cart_form() altering and building _commerce_product_attribute_field_names from scrath:
I have commerce_product with attribute field of type 'term reference'. Changing attribute in app (built by http://tylerfrankenstein.com/code/build-mobile-app-sell-products-with-drupal) works well.
After logical type field adding to commerce_product I got problem. _commerce_product_display_get_current_product_id() function does not return chosen commerce_product id cause new field gets to _commerce_product_attribute_field_names array.
I was had to fix this with commerce_cart_add_to_cart_form() altering and building _commerce_product_attribute_field_names from scrath: