valantic-spryker / price-product-customer-group
Module containing database schema and required plugins for specific product prices per customer group.
Installs: 0
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
pkg:composer/valantic-spryker/price-product-customer-group
Requires
- php: >=7.3
 - spryker/cart: ^7.10
 - spryker/customer-group: ^2.6
 - spryker/kernel: ^3.61
 - spryker/price-product: ^4.31
 - spryker/price-product-extension: ^1.5
 - spryker/product: ^6.25
 - spryker/propel-orm: ^1.14
 - spryker/transfer: ^3.29
 - valantic-spryker/price-product-customer-group-connector: ^0.5.0
 
Requires (Dev)
- codeception/module-asserts: ^1.3.0
 - codeception/module-phpbrowser: ^1.0.0
 - codeception/stub: ^3.6.1
 - phpstan/phpstan: ^1.0.0
 - spryker/code-sniffer: ^0.17.1
 - spryker/testify: ^3.40.0
 
This package is auto-updated.
Last update: 2025-10-09 14:47:23 UTC
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