PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.21
ووسلام – همگام سازی ووکامرس و باسلام v1.10.21
1.10.21 1.10.19 1.10.20 1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.2 1.9.1 1.9.0 1.8.8 1.8.5 All 54 releases
← All changes | includes/Services/VendorSyncPolicy.php +5 -0 1.10.181.10.21 View file →
@@ -116,8 +116,13 @@
116 116 $variantFields = [
117 117 'id' => true,
118 118 'primary_price' => true,
119 119 'stock' => true,
120 + // Product PATCH identifies a variant by its properties. Keep
121 + // those properties as identity data even in the limited mode;
122 + // they are not mutable fields, and the API's variants schema
123 + // requires them when the single product endpoint is used.
124 + 'properties' => true,
120 125 ];
121 126
122 127 $restricted['variants'] = array_map(function ($variant) use ($variantFields) {
123 128 return is_array($variant) ? array_intersect_key($variant, $variantFields) : [];