You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WooCommerce/Classes/ViewRelated/Orders/Order Creation/ProductsSection/AddProductVariationToOrderViewModel.swift
+31-7Lines changed: 31 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,17 @@ final class AddProductVariationToOrderViewModel: ObservableObject {
14
14
///
15
15
privateletstores:StoresManager
16
16
17
-
/// The product whose variations are listed
17
+
/// The ID of the parent variable product
18
18
///
19
-
privatevarproduct:Product
19
+
privateletproductID:Int64
20
+
21
+
/// The name of the parent variable product
22
+
///
23
+
letproductName:String
24
+
25
+
/// All attributes for variations of the parent variable product
26
+
///
27
+
privateletproductAttributes:[ProductAttribute]
20
28
21
29
/// All purchasable product variations for the product.
22
30
///
@@ -27,7 +35,7 @@ final class AddProductVariationToOrderViewModel: ObservableObject {
0 commit comments