承接 fond-of-spryker/product 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fond-of-spryker/product

最新稳定版本:1.2.0

Composer 安装命令:

composer require fond-of-spryker/product

包简介

Extend Spryker Product Module

README 文档

README

Build Status PHP from Travis config license

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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-09