osaka / module-structureddata
该模块用于在产品页面生成结构化数据
0.1.0
2024-06-29 01:27 UTC
This package is auto-updated.
Last update: 2024-09-29 15:55:33 UTC
README
这是一个简单的用于Magento 2(版本2.4.x)的模块,可以帮助您将结构化数据添加到产品页面。插件不会添加任何配置到您的电子商务仪表板,并且不需要您进行任何自定义。
composer require osaka/module-structureddata
主要功能
该模块用于在产品页面生成结构化数据
安装
* = 在生产环境中,请使用 --keep-generated
选项
需求
- 需要PHP soap扩展。要安装它,请运行
sudo apt-get install php-soap
并sudo systemctl restart apache2
或sudo service apache2 restart
类型1:Zip文件
- 将zip文件解压到
app/code/Osaka
- 通过运行
php bin/magento module:enable Osaka_StructuredData
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento cache:flush
清理缓存
类型2:Composer
- 检查您的PHP和apache/nginx依赖项,并在必要时更新它们。
- 通过运行
composer require osaka/module-structureddata
使用composer安装模块 - 通过运行
php bin/magento module:enable Osaka_StructuredData
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento cache:flush
清理缓存
配置
不需要配置。
属性
属性示例
{
"@context":"https://schema.org/","@type":"Product",
"name":"product one",
"sku":"fo83hqfehdfhi3h3",
"description":"Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
"image":
["http://local.magento.co/media/catalog/product/example.jpg"]
}