1

I have added the following code to catalog_product_view.xml to show the SKU in the list of attributes inside the "More information" tab

<referenceBlock name="product.info.details">
  <referenceBlock name="product.attributes">
      <arguments>
        <argument name="at_call" xsi:type="string">getSku</argument>
        <argument name="at_code" xsi:type="string">sku</argument>
        <argument name="css_class" xsi:type="string">sku</argument>
      </arguments>
    </referenceBlock>
</referenceBlock>

The other customizations in the file are visible, but not this one. Any idea?

1
  • did you tried this? let me know if it helps Dec 6, 2019 at 12:12

1 Answer 1

5

You don't need to do anything like that

You just follow below step to display sku in More Information tab on product view page

  1. Go to Stores -> Attributes -> Product

enter image description here

  1. Search SKU attribute and edit it

enter image description here

  1. Go to Storefront Properties tab and change Visible on Catalog Pages on Storefront value from No to Yes

enter image description here

Result :

enter image description here

Note : Flush cache and check

Hope this will help you

1
  • thank you! it works!
    – Max
    Dec 6, 2019 at 14:42

Your Answer

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

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