Add product image to import

This commit is contained in:
David Bomba 2024-06-05 11:16:36 +10:00
parent 8c4651a559
commit 836802764a
2 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class ProductMap
12 => 'product.custom_value2', 12 => 'product.custom_value2',
13 => 'product.custom_value3', 13 => 'product.custom_value3',
14 => 'product.custom_value4', 14 => 'product.custom_value4',
15 => 'product.image_url'
]; ];
} }
@ -52,6 +53,7 @@ class ProductMap
12 => 'texts.custom_value', 12 => 'texts.custom_value',
13 => 'texts.custom_value', 13 => 'texts.custom_value',
14 => 'texts.custom_value', 14 => 'texts.custom_value',
15 => 'texts.image_url',
]; ];
} }
} }

View File

@ -42,6 +42,7 @@ class ProductTransformer extends BaseTransformer
'custom_value2' => $this->getString($data, 'product.custom_value2'), 'custom_value2' => $this->getString($data, 'product.custom_value2'),
'custom_value3' => $this->getString($data, 'product.custom_value3'), 'custom_value3' => $this->getString($data, 'product.custom_value3'),
'custom_value4' => $this->getString($data, 'product.custom_value4'), 'custom_value4' => $this->getString($data, 'product.custom_value4'),
'product_image' => $this->getString($data, 'product.image_url'),
]; ];
} }
} }