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?

  • did you tried this? let me know if it helps – Naresh Rupareliya Dec 6 '19 at 12:12
3

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

| improve this answer | |
  • thank you! it works! – Max Dec 6 '19 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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