Product Variations with Attributes equals to Any is not shown correctly inside the Order Detail screen because the cell will show just some commas. The Product variation detail shows them correct.
| Order Detail (look at the cell) | Product Variation detail |
:-------------------------:|:-------------------------:
| 
I took a quick peek at this, and I'm guessing this has been an issue ever since we added the variation attributes to the Order Details. In the Product variation details, we manually create that Any option:
But we don't do that in the Order details:
Since we're showing the variation attributes in more places in the app now, it'd probably make sense to generate that Any option once and then reuse wherever it's needed.
Thanks for investigating this issue @rachelmcr 🙇
@pmusolino @rachelmcr
I'm thinking of grabbing this issue. 🙋♀️
Just one thing: can you outline the steps to reproduce this issue? I can't figure out how to create an order with "Any" attributes. 😅
Sure @momo-ozawa. Basically, you should have a variable product on your store, with some attributes. Between the options of these attributes, you should select Any. After saving the product variation, you can generate a new order, selecting the product with the option Any. You will be able to see the Order in the mobile app with the empty text when the option selected is Any. :) Let me know if you are able to reproduce it in this way.
Most helpful comment
I took a quick peek at this, and I'm guessing this has been an issue ever since we added the variation attributes to the Order Details. In the Product variation details, we manually create that
Anyoption:https://github.com/woocommerce/woocommerce-ios/blob/0c95e52a023ba1f3dc917a8417fdafef32057d5e/WooCommerce/Classes/ViewRelated/Products/Edit%20Product/EditableProductVariationModel.swift#L28-L31
But we don't do that in the Order details:
https://github.com/woocommerce/woocommerce-ios/blob/0c95e52a023ba1f3dc917a8417fdafef32057d5e/WooCommerce/Classes/ViewModels/ProductDetailsCellViewModel.swift#L144-L151
Since we're showing the variation attributes in more places in the app now, it'd probably make sense to generate that
Anyoption once and then reuse wherever it's needed.