Add product fields to import map

This commit is contained in:
David Bomba 2024-07-14 08:50:29 +10:00
parent d53f3062cf
commit 273fe4d6eb
2 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,8 @@ class ProductMap
14 => 'product.custom_value4', 14 => 'product.custom_value4',
15 => 'product.image_url', 15 => 'product.image_url',
16 => 'product.in_stock_quantity', 16 => 'product.in_stock_quantity',
17 => 'product.tax_category',
18 => 'product.max_quantity',
]; ];
} }
@ -56,6 +58,8 @@ class ProductMap
14 => 'texts.custom_value', 14 => 'texts.custom_value',
15 => 'texts.image_url', 15 => 'texts.image_url',
16 => 'texts.in_stock_quantity', 16 => 'texts.in_stock_quantity',
17 => 'texts.tax_category',
18 => 'texts.max_quantity',
]; ];
} }
} }

View File

@ -43,6 +43,7 @@ class ProductTransformer extends BaseTransformer
'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'), 'product_image' => $this->getString($data, 'product.image_url'),
'in_stock_quantity' => $this->getFloat($data, 'product.in_stock_quantity'),
]; ];
} }
} }