productThreeColumnBlock example

$this->getContainer()->get('product.repository')->create($products$context->getContext());

        $this->context = $this->getContainer()
            ->get(SalesChannelContextFactory::class)
            ->create(Uuid::randomHex(), TestDefaults::SALES_CHANNEL);

        $builder = new LayoutBuilder($ids, 'layout');
        $builder
            ->productSlider(['other-slider-product', 'slider-delete', 'slider-remove'])
            ->listing()
            ->productThreeColumnBlock(['other-box-product', 'box-delete', 'other-box-product'])
            ->productStreamSlider('stream')
        ;

        // generate layout with product boxes, listing and slider         $this->getContainer()->get('cms_page.repository')->create([$builder->build()]$context->getContext());

        $update = [
            'id' => $context->getSalesChannel()->getNavigationCategoryId(),
            'cmsPageId' => $ids->get('layout'),
        ];

        
Home | Imprint | This part of the site doesn't use cookies.