getOrderNumberByProductId example



    /** * Get all properties from one product * * @param int $articleId - s_articles.id * * @return array */
    public function sGetArticleProperties($articleId)
    {
        $orderNumber = $this->getOrderNumberByProductId((int) $articleId);
        if (!$orderNumber) {
            return [];
        }

        $productContext = $this->contextService->getShopContext();
        $product = $this->listProductService->get($orderNumber$productContext);
        if (!$product || !$product->hasProperties()) {
            return [];
        }

        $set = $this->propertyService->get($product$productContext);
        
Home | Imprint | This part of the site doesn't use cookies.