0

i want to show manufacturer details in grouped product. but i am not getting the manufacturer attribute in product detail page. For reference please find the attached image. enter image description here

2
  • manufacturer means which attribute you have talking about?
    – Amit Bera
    Commented Jan 9, 2021 at 18:18
  • we have to show the Brand Name Commented Jan 9, 2021 at 18:38

1 Answer 1

0

Add the below code in your catalog_product_view_type_grouped.xml file,

path : app/design/frontend/[your_theme]/Magento_GroupedProduct/layout

<block class="Magento\Catalog\Block\Product\View\Description" name="product.info.customattribute" template="Magento_Catalog::product/view/attribute.phtml">
            <arguments>
                <argument name="at_call" xsi:type="string">getBrand</argument>
                <argument name="at_code" xsi:type="string">brand</argument>
                <argument name="css_class" xsi:type="string">brand</argument>
                <argument name="add_attribute" xsi:type="string">itemprop="brand"</argument>
                <argument name="at_type" xsi:type="string">text</argument>
            </arguments>
        </block>

And also you can use the own brand attribute code instead of brand

3
  • i am not getting brand option only for Grouped Products Commented Jan 11, 2021 at 8:39
  • add the above code in catalog_product_view_type_grouped.xml file Commented Jan 11, 2021 at 9:33
  • Answer is updated. Commented Jan 11, 2021 at 9:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.