assignProductData example

'txtzusatztxt' => '__variant_additionaltext',
            'txtkeywords' => '__product_keywords',
            'txtpackunit' => '__unit_packunit',
        ]);
    }

    private function assignData(ListProduct $product, array $data): ListProduct
    {
        $translation = $this->getProductTranslation($data);
        $data = array_merge($data$translation);

        $this->assignProductData($product$data);

        $product->setTax(
            $this->taxHydrator->hydrate($data)
        );

        $this->assignPriceGroupData($product$data);

        if ($data['__product_supplierID']) {
            $product->setManufacturer(
                $this->manufacturerHydrator->hydrate($data)
            );
        }
Home | Imprint | This part of the site doesn't use cookies.