fond-of-spryker/availability-alert-data-import

Data Import For Availability Alerts

1.0.0 2018-10-31 16:31 UTC

This package is auto-updated.

Last update: 2024-11-05 20:29:05 UTC


README

Build Status PHP from Travis config license

This extension makes it possible import the availability alerts

Installation

composer require fond-of-spryker/availability-alert-data-import

1. Add Data Importer Plugin in Pyz\Zed\DataImport\DataImportDependencyProvider

 /**
     * @return array
     */
    protected function getDataImporterPlugins(): array
    {
        return [
            [new AvailabilityAlertDataImportPlugin(), DataImportConfig::IMPORT_TYPE_AVAILABILITY_ALERT]
            ........
        ];
    }
     

2. Add Import type constant in Pyz\Zed\DataImport\DataImportConfig

 const IMPORT_TYPE_AVAILABILIY_ALERT = 'availability-alert';
     

3. Create data import file

 availability_alert.csv