fond-of-spryker/product-image-storage
Composer 安装命令:
composer require fond-of-spryker/product-image-storage
包简介
Add product abstract imagesset by given name
README 文档
README
Add more multiple image sets to your product.
By default, only one image is provided in the ProductViewTransfer object. This module adds a new field to "ProductViewTransfer" which called "imageSets". In this field you can add your own image sets as much as you like.
Install
composer require fond-of-spryker/product-image-storage
vendor/bin/console transfer:generate
Configuration
Open the existing "ProductStorageDependencyProvider" (mostly stored in Pyz\Client\ProductStorage) and replace the ProductViewImageExpanderPlugin() with the new one of this module.
use FondOfSpryker\Client\ProductImageStorage\Plugin\ProductViewImageExpanderPlugin;
After that you only need to configure which image sets you want. Open your store config and lets insert some image sets :)
// ---------- Image sets
$config[\FondOfSpryker\Shared\ProductImageStorage\ProductImageStorageConstants::IMAGES_SET_TO_ADD] = [
'SetOne',
'SetTow'
];'
Take a look in ZED to get the name of your sets.
统计信息
- 总下载量: 12.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-21