getLegacyProduct example


            if ($providedNumber && $providedNumber == $productNumber && empty($selection) || $type === 0) {
                $selection = $product->getSelectedOptions();
            }
        }

        $categoryId = (int) $sCategoryID;
        if (empty($categoryId) || $categoryId == Shopware()->Shop()->getId()) {
            $categoryId = Shopware()->Modules()->Categories()->sGetCategoryIdByArticleId($id);
        }

        return $this->getLegacyProduct(
            $product,
            $categoryId,
            $selection
        );
    }

    /** * calculates the reference price with the base price data * * @param string|float $price | the final price which will be shown * @param string|float $purchaseUnit * @param string|float $referenceUnit * * @return float */
Home | Imprint | This part of the site doesn't use cookies.