Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function _prepareLayout() {
- $childBlock = $this->getLayout()->createBlock('MagentoCatalogBlockProductViewOptionsTypeDefaultType', 'product.info.options.default');
- $childBlock->setTemplate('Magento_Catalog::product/view/options/type/default.phtml');
- $this->addChild('default', $childBlock);
- $childBlock = $this->getLayout()->createBlock('MagentoCatalogBlockProductViewOptionsTypeText', 'product.info.options.text');
- $childBlock->setTemplate('Magento_Catalog::product/view/options/type/text.phtml');
- $this->addChild('text', $childBlock);
- $childBlock = $this->getLayout()->createBlock('MagentoCatalogBlockProductViewOptionsTypeFile', 'product.info.options.file');
- $childBlock->setTemplate('Magento_Catalog::product/view/options/type/file.phtml');
- $this->addChild('file', $childBlock);
- $childBlock = $this->getLayout()->createBlock('MagentoBundleBlockCatalogProductViewTypeBundleOptionSelect', 'product.info.bundle.options.select');
- $childBlock->setTemplate('Magento_Bundle::catalog/product/view/options/type/bundle/option/select.phtml');
- $this->addChild('select', $childBlock);
- $childBlock = $this->getLayout()->createBlock('MagentoCatalogBlockProductViewOptionsTypeDate', 'product.info.options.date');
- $childBlock->setTemplate('Magento_Catalog::product/view/options/type/date.phtml');
- $this->addChild('date', $childBlock);
- $childBlock = $this->getLayout()->createBlock('MagentoBundleBlockCatalogProductViewTypeBundleOptionMulti', 'product.info.bundle.options.,ulti');
- $childBlock->setTemplate('Magento_Bundle::catalog/product/view/options/type/bundle/option/multi.phtml');
- $this->addChild('multi', $childBlock);
- $childBlock = $this->getLayout()->createBlock('MagentoBundleBlockCatalogProductViewTypeBundleOptionRadio', 'product.info.bundle.options.radio');
- $childBlock->setTemplate('Magento_Bundle::catalog/product/view/options/type/bundle/option/radio.phtml');
- $this->addChild('radio', $childBlock);
- $childBlock = $this->getLayout()->createBlock('MagentoBundleBlockCatalogProductViewTypeBundleOptionCheckbox', 'product.info.bundle.options.checkbox');
- $childBlock->setTemplate('Magento_Bundle::catalog/product/view/options/type/bundle/option/checkbox.phtml');
- $this->addChild('checkbox', $childBlock);
- return parent::_prepareLayout();
- }
- <referenceContainer name="content">
- <container name="Example.personalisation.main" htmlTag="div" htmlClass="personalisation" after="-">
- <block class="ExamplePersonalisationBlockForm" name="Example.personalisation.form" template="Example_Personalisation::form.phtml">
- <arguments>
- <argument name="products" xsi:type="string">bundle-test,bundle-test2</argument>
- </arguments>
- <container name="product.info.form.content" as="product_info_form_content">
- <block class="MagentoCatalogBlockProductView" name="product.info.addtocart" as="addtocart" template="Magento_Catalog::product/view/addtocart.phtml"/>
- </container>
- <block class="MagentoFrameworkViewElementTemplate" name="product.info.form.options" as="options_container">
- <block class="MagentoCatalogBlockProductView" name="product.info.options.wrapper" as="product_options_wrapper" template="Magento_Catalog::product/view/options/wrapper.phtml">
- <block class="MagentoCatalogBlockProductViewOptions" name="product.info.options" as="product_options" template="Magento_Catalog::product/view/options.phtml">
- <block class="MagentoCatalogBlockProductViewOptionsTypeDefaultType" name="product.info.options.default" as="default" template="Magento_Catalog::product/view/options/type/default.phtml"/>
- <block class="MagentoCatalogBlockProductViewOptionsTypeText" name="product.info.options.text" as="text" template="Magento_Catalog::product/view/options/type/text.phtml"/>
- <block class="MagentoCatalogBlockProductViewOptionsTypeFile" name="product.info.options.file" as="file" template="Magento_Catalog::product/view/options/type/file.phtml"/>
- <block class="MagentoCatalogBlockProductViewOptionsTypeSelect" name="product.info.options.select" as="select" template="Magento_Catalog::product/view/options/type/select.phtml"/>
- <block class="MagentoCatalogBlockProductViewOptionsTypeDate" name="product.info.options.date" as="date" template="Magento_Catalog::product/view/options/type/date.phtml"/>
- <block class="MagentoBundleBlockCatalogProductViewTypeBundleOptionSelect" name="product.info.bundle.options.select" as="select"/>
- <block class="MagentoBundleBlockCatalogProductViewTypeBundleOptionMulti" name="product.info.bundle.options.multi" as="multi"/>
- <block class="MagentoBundleBlockCatalogProductViewTypeBundleOptionRadio" name="product.info.bundle.options.radio" as="radio"/>
- <block class="MagentoBundleBlockCatalogProductViewTypeBundleOptionCheckbox" name="product.info.bundle.options.checkbox" as="checkbox"/>
- </block>
- <block class="MagentoFrameworkViewElementHtmlCalendar" name="html_calendar" as="html_calendar" template="Magento_Theme::js/calendar.phtml"/>
- </block>
- <block class="MagentoCatalogBlockProductView" name="product.info.options.wrapper.bottom" as="product_options_wrapper_bottom" template="Magento_Catalog::product/view/options/wrapper/bottom.phtml">
- <block class="MagentoCatalogBlockProductView" name="product.info.addtocart.additional" as="product.info.addtocart" template="Magento_Catalog::product/view/addtocart.phtml"/>
- </block>
- </block>
- </block>
- </container>
- </referenceContainer>
Add Comment
Please, Sign In to add comment