extractPropertyTranslation example



            $productProperties = $this->db->fetchAll($sql[
                'groupId' => $product['filtergroupID'],
                'shopId' => $shopContext->getShop()->getId(),
                'fallbackId' => $shopContext->getShop()->getFallbackId(),
            ]);

            foreach ($productProperties as $productProperty) {
                if (!\array_key_exists($productProperty['id']$properties)) {
                    // the key is not part of the array so add it to the end                     $properties[$productProperty['id']] = $this->extractPropertyTranslation($productProperty);
                }
            }
        }

        return $properties;
    }

    /** * fills the product properties with the values and fills up empty values * * @param array $properties * @param array $articles * * @return array */
Home | Imprint | This part of the site doesn't use cookies.