fond-of-spryker/product
最新稳定版本:1.2.0
Composer 安装命令:
composer require fond-of-spryker/product
包简介
Extend Spryker Product Module
README 文档
README
Extend Spryker Product Module
- Use Custom Attribut to generate the Url
Installation
composer require fond-of-spryker/product
1. To use the Custom Url generate functionality you have to take the following steps:
###Add the Attribute Code in the configuration file
// ---------- PRODUCT URL
$config[ProductConstants::URL_ATTRIBUTE_CODE] = 'url_key';
Extend the Product Dependency in Pyz
protected function getProductAbstractBeforeCreatePlugins(Container $container)
{
return [
.......
new UrlProductAbstractBeforeCreatePlugin()
];
}
protected function getProductAbstractAfterCreatePlugins(Container $container)
{
return [
..........
new UrlProductAbstractAfterCreatePlugin()
];
}
protected function getProductAbstractBeforeUpdatePlugins(Container $container)
{
return [
..........
new UrlProductAbstractBeforeUpdatePlugin()
];
}
protected function getProductAbstractAfterUpdatePlugins(Container $container)
{
return [
..........
new UrlProductAbstractAfterUpdatePlugin()
];
}
统计信息
- 总下载量: 21.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-09