Skip to content

Commit fc63aa4

Browse files
authored
Merge pull request #14 from descom-es/product_add_condition
Changes ProductCondition
2 parents d8ad665 + 7f43615 commit fc63aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Google/Merchant/Services/Products/Transformer/ProductTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function transform(array $productData): Product
3434

3535
$product->setProductTypes([self::productType($productData)]);
3636

37-
$product->setCondition('new');
37+
$product->setCondition($productData['condition'] ?? 'new');
3838
$product->setBrand($productData['brand']['name'] ?? null);
3939
$product->setGtin($productData['gtin'] ?? null);
4040

0 commit comments

Comments
 (0)