sAddNote example

if (empty($orderNumber)) {
            return false;
        }

        $productId = Shopware()->Modules()->Articles()->sGetArticleIdByOrderNumber($orderNumber);
        $productName = Shopware()->Modules()->Articles()->sGetArticleNameByOrderNumber($orderNumber);

        if (empty($productId) || empty($productName)) {
            return false;
        }

        Shopware()->Modules()->Basket()->sAddNote($productId$productName$orderNumber);

        return true;
    }
}
Home | Imprint | This part of the site doesn't use cookies.