valantic-spryker/price-product-customer-group
最新稳定版本:1.0.0
Composer 安装命令:
composer require valantic-spryker/price-product-customer-group
包简介
Module containing database schema and required plugins for specific product prices per customer group.
README 文档
README
Module containing database schema and required plugins for specific product prices per customer group.
Install package
composer req valantic-spryker/price-product-customer-group
Update shared config
config/Shared/config_default.php
$config[KernelConstants::CORE_NAMESPACES] = [
...
'ValanticSpryker',
];
Register plugins
src/Pyz/Zed/PriceProduct/PriceProductDependencyProvider.php
...
use ValanticSpryker\Zed\PriceProductCustomerGroup\Communication\Plugin\PriceProduct\CustomerGroupPriceDimensionAbstractWriterPlugin;
use ValanticSpryker\Zed\PriceProductCustomerGroup\Communication\Plugin\PriceProduct\CustomerGroupPriceDimensionConcreteWriterPlugin;
use ValanticSpryker\Zed\PriceProductCustomerGroup\Communication\Plugin\PriceProduct\CustomerGroupPriceProductDimensionExpanderStrategyPlugin;
use ValanticSpryker\Zed\PriceProductCustomerGroup\Communication\Plugin\PriceProduct\CustomerGroupPriceProductStorePreDeletePlugin;
use ValanticSpryker\Zed\PriceProductCustomerGroup\Communication\Plugin\PriceProduct\CustomerGroupPriceQueryCriteriaPlugin;
...
protected function getPriceDimensionQueryCriteriaPlugins(): array
{
return array_merge(parent::getPriceDimensionQueryCriteriaPlugins(), [
...
new CustomerGroupPriceQueryCriteriaPlugin(),
]);
}
...
protected function getPriceProductStorePreDeletePlugins(): array
{
return [
...
new CustomerGroupPriceProductStorePreDeletePlugin(),
];
}
...
protected function getPriceProductDimensionExpanderStrategyPlugins(): array
{
return [
...
new CustomerGroupPriceProductDimensionExpanderStrategyPlugin(),
];
}
...
protected function getPriceDimensionConcreteSaverPlugins(): array
{
return [
...
new CustomerGroupPriceDimensionConcreteWriterPlugin(),
];
}
...
protected function getPriceDimensionAbstractSaverPlugins(): array
{
return [
...
new CustomerGroupPriceDimensionAbstractWriterPlugin(),
];
}
src/Pyz/Zed/Console/ConsoleDependencyProvider.php
...
use ValanticSpryker\Zed\PriceProductCustomerGroup\Communication\Console\PriceProductCustomerGroupDeleteConsole;
...
protected function getConsoleCommands(Container $container): array
{
$commands = [
...
new PriceProductCustomerGroupDeleteConsole(),
];
}
src/Pyz/Service/PriceProduct/PriceProductDependencyProvider.php
...
use ValanticSpryker\Service\PriceProductCustomerGroup\Plugin\PriceProduct\CustomerGroupPriceProductFilterPlugin;
...
protected function getPriceProductDecisionPlugins(): array
{
return array_merge([
...
new CustomerGroupPriceProductFilterPlugin(),
], parent::getPriceProductDecisionPlugins());
}
See also
Integration of price product customer group connector: https://gitlab.nxs360.com/packages/php/spryker/price-product-customer-group-connector
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-08-01