mirror of
https://github.com/wearepixel/laravel-google-shopping-feed.git
synced 2026-11-14 21:31:46 +00:00
chore: fix adding additional attributes
This commit is contained in:
@@ -41,13 +41,9 @@ public function addItem(array $item): bool
|
||||
}
|
||||
}
|
||||
|
||||
$product = [
|
||||
'id' => $item['id'],
|
||||
'link' => $item['link'],
|
||||
'title' => $item['title'],
|
||||
'price' => $item['price'],
|
||||
'image_link' => $item['image_link'],
|
||||
];
|
||||
foreach ($item as $key => $value) {
|
||||
$product[$key] = $value;
|
||||
}
|
||||
|
||||
$this->products[] = $product;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user