productBox example

/** * @param string[] $keys */
    public function productThreeColumnBlock(array $keys, string $section = 'main'): LayoutBuilder
    {
        $this->section($section);

        $this->sections[$section]['blocks'][] = [
            'position' => $this->blockPosition($section),
            'type' => 'product-three-column',
            'slots' => [
                array_merge(['slot' => 'left']$this->productBox($keys[0])),
                array_merge(['slot' => 'center']$this->productBox($keys[1])),
                array_merge(['slot' => 'right']$this->productBox($keys[2])),
            ],
        ];

        return $this;
    }

    public function listing(string $section = 'main'): LayoutBuilder
    {
        $this->section($section);

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