fond-of-spryker/shipment-table-rate-data-import

Data Import For Shipping Table Rates

3.0.0 2019-11-27 10:49 UTC

This package is auto-updated.

Last update: 2024-10-29 04:53:38 UTC


README

Build Status PHP from Travis config license

This extension makes it possible import the shipping table rates

Installation

composer require fond-of-spryker/shipment-table-rate-data-import

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

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

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

 const IMPORT_TYPE_SHIPMENT_TABLE_RATE = 'shipment-table-rate';
     

3. Create data import file

 shipment_table_rate.csv
 
 Example: 
 free_threshold,price,country,store,postcode
 100,2000,US,STORE_US,XXXXX    
 100,2500,US,STORE_US,X*