We sacrifice by not doing any other technology, so that you get the best of Magento.

We sacrifice by not doing any other technology, so that you get the best of Magento.

If you want to display brand attribute value in the product view page,  You can use the following code:

<referenceContainer name="product.info.main">
    <block class="MagentoCatalogBlockProductViewDescription" name="product.info.brand" template="product/view/attribute.phtml" before="-">
        <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="at_label" xsi:type="string">none</argument>
            <argument name="add_attribute" xsi:type="string"></argument>
        </arguments>
    </block>
</referenceContainer>

Also If you need to display text before this attribute value in the product page something like:

Brand: Apple

For that you need to change ‘none’ to ‘default’ as shown below in ‘at_label’ :

From:

<argument name="at_label" xsi:type="string">none</argument>

To:

<argument name="at_label" xsi:type="string">default</argument>

Now you can see product attribute value with it’s label in the product page.

Fill the below form if you need any Magento relate help/advise/consulting.

With Only Agency that provides a 24/7 emergency support.

    Recent Articles
    Get a Free Quote

      Full Name

      Email Address

      Mobile Number

      Message

      Let’s initiate a discussion!!

      With Only Agency that provides a 24/7 emergency support.

        Full Name

        Email Address

        Mobile Number

        Message