From f83fedf25fafb4864b9f3a99ec499efc71b99bd0 Mon Sep 17 00:00:00 2001 From: Robin Mulder Date: Fri, 26 May 2023 09:00:08 +0200 Subject: [PATCH] Reset tax_id_columns (#31) Co-authored-by: Robin Mulder --- Plugin/SetTaxClassId.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Plugin/SetTaxClassId.php b/Plugin/SetTaxClassId.php index 0f6a456..497fe80 100644 --- a/Plugin/SetTaxClassId.php +++ b/Plugin/SetTaxClassId.php @@ -70,6 +70,7 @@ public function afterAddRequiredData(Product $context) $mappings = $this->serializer->unserialize($mappings); + $this->tax_id_columns = []; foreach ($attributes as $attribute) { if ($attribute['magento_type'] === "tax") { $this->tax_id_columns[] = $attribute['pim_type'];