We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8ad665 + 7f43615 commit fc63aa4Copy full SHA for fc63aa4
src/Google/Merchant/Services/Products/Transformer/ProductTransformer.php
@@ -34,7 +34,7 @@ public static function transform(array $productData): Product
34
35
$product->setProductTypes([self::productType($productData)]);
36
37
- $product->setCondition('new');
+ $product->setCondition($productData['condition'] ?? 'new');
38
$product->setBrand($productData['brand']['name'] ?? null);
39
$product->setGtin($productData['gtin'] ?? null);
40
0 commit comments