elgentos / magento2-structured-data
为Magento 2网店实现结构化数据。
1.3.0
2022-06-29 12:18 UTC
Requires
- php: ^7.4|^8.0|^8.1
- magento/framework: ^102.0.7||^103.0
- magento/module-catalog: ^103.0.7||^104.0
- magento/module-eav: ^102.0.7||^102.1
- magento/module-review: ^100.3.7||^100.4
- magento/module-search: ^101.0.7||^101.1
- magento/module-store: ^101.0.7||^101.1
- magento/module-theme: ^101.0.7||^101.1
Requires (Dev)
- mediact/coding-standard-magento2: @stable
- mediact/testing-suite: ^2.9
This package is auto-updated.
Last update: 2024-08-29 05:37:33 UTC
README
安装
可以使用Composer安装此包。
composer require elgentos/magento2-structured-data bin/magento module:enable Elgentos_StructuredData bin/magento setup:upgrade
用法
要使用此扩展,您需要在Magento的配置中启用它。这将使您的页面在<body>
标签结束前显示结构化数据。
此外,请确保您已移除所有itemscope
、itemtype
和itemprop
属性。这些属性通常添加到产品页面,并将在产品页面上添加结构化数据。这需要在您的主题中进行。
贡献
欢迎提交拉取请求。对于重大更改,请先创建一个问题以讨论您希望更改的内容。
请确保根据需要更新测试。
许可证
MIT