Import Discount Management data

Edit on GitHub

To learn how data import works and about different ways of importing data, see Data import. This section describes the data import files that are used to import data related to the Discount Management PBC:

  • discount.csv: allows you to import general information about the discounts and their attributes.
  • discount_amount.csv: allows you to import data used to set the values of the discounts imported with discount.csv.
  • discount_store.csv: allows you to link the discounts with the stores.
  • discount_voucher.csv allows you to import information about vouchers.

The following table provides details about Discount Management data importers, their purpose, CSV files, dependencies, and other details. Each data importer contains links to CSV files used to import the corresponding data, including specifications of mandatory and unique fields, dependencies, detailed explanations, recommendations, templates, and content examples.

DATA IMPORTER PURPOSE CONSOLE COMMAND FILES DEPENDENCIES
Discount Imports information about the discounts and their attributes. data:import:discount discount.csv None
Discount Amount Imports information used to set the values of the discounts imported with discount.csv. data:import:discount-amount discount_amount.csv
  • discount.csv
  • discount_store.csv
Discount Store Imports information about this file links the discounts with the stores. data:import:discount-store discount_store.csv
  • discount.csv
  • stores.php configuration file of demo shop PHP project.
Discount Voucher Imports information used to create the discount voucher. data:import:discount-voucher discount_voucher.csv discount.csv