You can import or update products in bulk using the Import CSV File tool accessed via the Catalog > Import CSV file menu item.
The sample CSV file used in the demo can be accessed via the Tools > Installation > Create sample CSV files menu item.
A CSV file is a text file that can be read by any standard text editor but this type of file is best read and edited in MS Excel or other spreadsheet applications.
A CSV file contains data separated by commas (or semi-colons in many European countries), the ‘field separators’. Fields also may be contained in double quote characters.
The contents of a CSV file might look like this:
"Product Name","Quantity"
"Wood table",5
"Folding chair",26
Each line can only contain one product, which means that CSV files are unsuitable for storing descriptions.
The first line is reserved for column headings. Store Commander needs this line to be present in all your CSV files in order to match the data with the appropriate fields.
To create a CSV file from an Excel spreadsheet:
With a PC: Select Save as… then CSV (Comma-delimited) in the file type drop-down list;
| CSV files are used to exchange data between various applications in a simple format. You’ll save a lot of time if your suppliers can provide you with a list of their products in CSV format. With this file, you’ll be able to add the products to your e-store in no time thanks to Store Commander, plus automatically update your available stock if you’re working on a “just in time” or “drop shipping” basis". |
|
The Import window is divided into 3 sections:
Section 1
This section lists the CSV files present on your server (in your /adminXXX/import folder).
Toolbar Buttons
Table Columns and File Options
Examples:
You want to import some new products from various suppliers whose references are always different:
Supplier: Empty Mapping: Empty Identify products by: Reference If product exists: Skip
Result: If identical products are found, they are saved to the yourFile.TODO.csv work file to be processed before continuing with the import.
You want to update the stock availability for products from the supplier “yourSupplier”:
Supplier: yourSupplier Mapping: yourMapping (the mapping saved previously when you imported the products; no need to re-enter the CSV file à database field links). Identify products by: Reference If product exists: Replace properties The mapping is loaded automatically. You can de-select fields other than “Reference” and “Quantity” if you only wish to update these values (remember to save this mapping for future use).
Result: The stock availability for products from this supplier is updated.
Section 2
A mapping is a set of links between the fields in the CSV file and those in the database. When a CSV file is selected in section 1, Store Commander analyzes the file and displays the list of its columns. For each of these columns, a link needs to be made with the associated field in the database.
If you use the sample CSV file provided, Store Commander makes this task even easier by automatically detecting these connections.
Toolbar Buttons
Table Columns; Links between the file and the database
Use: Check box to include this field on import. File field: Column name in the CSV file. Database field: Name of the associated field in the database. Options: When the field requires an option to be entered, the table cell is shown with a dark blue background. Options can include for example the languages for the name field, meta_title field etc.
Field Specificities
Section 3
Toolbar Buttons
Import Result
It’s worth pointing out that, generally speaking, imports don’t work perfectly first time round. But don’t panic!
Firstly, Store Commander creates a work copy of your CSV file named yourFile.TODO.csv. Each time a line is successfully imported, it is deleted from the work file. The lines that remain in the file are those that are causing problems or haven’t been processed. These lines can be edited manually to complete the import without having to start over again. If you prefer to revert to the original file and no longer wish to use the TODO.csv work file, you can delete it. It will be re-created from the original CSV file.
Next, Store Commander analyzes the data in your file and offers to create certain item such as suppliers, manufacturers, features etc. that do not already exist in the database for a hassle-free importation. You can then fill in the rest of the information later. After fixing a glitch, click again on the Import button in the toolbar to display any further instructions. Continue doing this until the message appears confirming the successful importation.
|
|
Reminder: PrestaShop deals with combination prices by recording the difference between the combination price inc. tax and the basic price inc. tax. For example, if the basic price is € 10 inc. tax and the combination price € 12 inc. tax, a value of 2 will be recorded in the database. Therefore, it’s important to enter the applicable tax rate as soon as combinations are created to make sure that this difference is calculated on the price inc. tax and not the pre-tax price.
The mapping options allow you to create the following items:
How does importing with automatic combination creation work?
Let’s take the following CSV file as an example:
1. Product Name, Color, Size 2. Leather shoe,beige, 8 3. Leather shoe,beige, 9 4. Leather boot, brown, 8;9 5. Leather boot, black, 8;9;10
In this example, we’ll choose to identify products by their names using the following mapping:
During importation, Store Commander reads the file line by line:
Line 1: Contains the headers used to identify the columns. Line 2: This is a new product with columns relating to combinations; Store Commander creates the product and the associated combination. Line 3: A product with the same name has been found in the database and the mapping contains combination attributes; Store Commander understands that these are combinations to be added to the existing product. Line 4: This is a new product with columns relating to combinations; Store Commander creates the product and all the associated combinations by “multiplying” the colors by the sizes. We shall end therefore up with a Brown Size 8 combination and a Brown Size 9 combination. Line 5: A product with the same name has been found in the database and the mapping contains combination attributes; Store Commander understands that these are combinations to be added to the existing product and the application automatically re-creates them. |
If you have specific requirements, we can provide customized tools tailored to your needs.
Please don’t hesitate to contact us to turbo charge your data processing!