File details - shipment_price.csv

Edit on GitHub

This document describes the shipment_price.csv file to configure the Shipment Price information in your Spryker Demo Shop.

To import the file, run:

data:import:shipment-price

Import file parameters

The file should have the following parameters:

PARAMETER REQUIRED TYPE REQUIREMENTS OR COMMENTS DESCRIPTION
shipment_method_key String Value previously imported already by its data importer using the shipment.csv file. Identifier of the shipment method.
store String Value previously defined in the stores.php project configuration. Name of the store.
currency String Value previously imported already by its data importer using the currency.csv file. Currency ISO code.
value_net No Integer Empty price values will be imported as zeros. Net value of the shipment cost.
value_gross No String Empty price values will be imported as zeros. Gross value of the shipment cost.

Import file dependencies

This file has the following dependencies:

Additional information

Field value must be integer as it is the internal format to store money (currency) in Spryker demo shop. Float values get converted into integer by multiplying by 100 (for example, if the shipment cost is 5.50 EUR, the value in CSV file should be 550).

Fields shipment_method_key, store and currency are mandatory, and must be valid (imported already from existing database values, or created manually using precedent CSV files: shipment_method.csv and currency.csv and stores.php configuration project file). Empty value fields will be imported as zeros.

Import template file and content example

Find the template and an example of the file below:

FILE DESCRIPTION
shipment_price.csv Exemplary import file with headers only.
shipment_price.csv Exemplary import file with Demo Shop data.