如何在xml布局文件中使用 overwrite the Details tab title on the product details page?的参数 我希望覆盖的布局文件是:vendor / magento / module-catalog / view / frontend / layout / catalog_product_view.xml 文件中的块是:
最新回答
- 2019-12-51 #
- 2019-12-52 #
在自定义布局文件中,您可以调用以下内容:
<referenceBlock name="product.info.description"> <arguments> <argument name="title" translate="true" xsi:type="string">Custom Name</argument> </arguments> </referenceBlock>
- 2019-12-53 #
<referenceBlock name="product.info.description"> <action method="setTitle"> <argument name="title" xsi:type="string">NewTitleGoesHere</argument> </action> </referenceBlock>
在
app/design/frontend/[Package]/[Yourtheme]/Magento_Catalog/layout/catalog_product_view.xml
:如果要添加新选项卡,即属性how_to_use: