If you want to add a new custom attribute in product tabs, then you you need to add the below code:
1 2 3 4 5 6 7 8 9 10 11 |
<referenceBlock name="product.info.details"> <block class="Magento\Catalog\Block\Product\View" name="product.info.keyfeature" as="keyfeature" template="Magento_Catalog::product/view/attribute.phtml" group="detailed_info"> <arguments> <argument name="at_call" xsi:type="string">getKeyFeatures</argument> <argument name="at_code" xsi:type="string">key_features</argument> <argument name="css_class" xsi:type="string">keyfeature</argument> <argument name="title" translate="true" xsi:type="string">Key Features</argument> <argument name="sort_order" xsi:type="string">20</argument> </arguments> </block> </referenceBlock> |
in your theme/Magento_Catalog/layout/catalog_product_view.xml file between the body tag.
Here I have set “key_features” product attribute in product tabs.
[crayon-63e09cff7ed42753958950/] Using above fucntion Images can be imported directly from...
Override view block using di.xml and add the below code...
You can check a list of called layout XML for...
Follow the below steps to install and set up PWA...
If you want to remove all leading zero's from order,...
Let our Magento expert connect to discuss your requirement.
We offer Magento
certified developers.
Our Magento clientele
is 500+.
We sign NDA for the
security of your projects.
We’ve performed 100+
Magento migration projects.
Free quotation
on your project.
Three months warranty on
code developed by us.