PHP code example of valantic-spryker / price-product-customer-group-data-import
1. Go to this page and download the library: Download valantic-spryker/price-product-customer-group-data-import library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
valantic-spryker / price-product-customer-group-data-import example snippets
use ValanticSpryker\Zed\PriceProductCustomerGroupDataImport\Communication\Plugin\PriceProductCustomerGroupDataImportPlugin;
...
protected function getDataImporterPlugins(): array
{
return [
...
new PriceProductCustomerGroupDataImportPlugin(),
];
}
use ValanticSpryker\Zed\PriceProductCustomerGroupDataImport\PriceProductCustomerGroupDataImportConfig;
...
protected function getConsoleCommands(Container $container): array
{
$commands = [
...
new DataImportConsole(DataImportConsole::DEFAULT_NAME . ':' . PriceProductCustomerGroupDataImportConfig::IMPORT_TYPE_PRICE_PRODUCT_CUSTOMER_GROUP),
];
}