enjoydevelop/magento2-module-reset-image-roles
最新稳定版本:1.0.0
Composer 安装命令:
composer require enjoydevelop/magento2-module-reset-image-roles
包简介
Magento 2 module to reset image roles by direct SQL queries
README 文档
README
Updates Image Roles. It copies the Base Image value to a specific Image Role (small_image, thumbnail, swatch_image).
What does this module solve?
In case when your product has the image and Base role, but misses other roles. So you can set other roles using this script.
Installation:
composer require enjoydevelop/magento2-module-reset-image-roles
bin/magento module:enable EnjoyDevelop_ResetImageRoles && bin/magento setup:upgrade && bin/magento setup:di:compile && bin/magento setup:static-content:deploy -f
Usage
Set the small_image role to the same images as used for Base Image Role
bin/magento catalog:image-roles:reset small_image
Set the small_image, thumbnail, swatch_image roles to the same images as used for Base Image Role
bin/magento catalog:image-roles:reset small_image,thumbnail,swatch_image
Set the custom_role_attribute_code role to the same images as used for Base Image Role
bin/magento catalog:image-roles:reset custom_role_attribute_code
Set the custom_role_attribute_id role to the same images as used for Base Image Role
bin/magento catalog:image-roles:reset custom_role_attribute_id
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: NONE
- 更新时间: 2024-04-23