X-Cart:Importing and Exporting Data

From X-Cart 4 Classic
Revision as of 15:55, 12 January 2011 by Piligrim (talk | contribs) (Importing Data)
Jump to: navigation, search

Import/Export procedures in X-Cart

X-Cart 4.3.x features export and import of almost all X-Cart data types. Export and import procedures facilitate the updating of your store data and allow you to consistently transfer data when upgrading your store or moving it to a new location.

Basic information on export procedures is available in the section Exporting Data, import procedures - in the section Importing Data.

Detailed information on X-Cart import and export can be found in the Import/Export Guide

Roles in Import/Export management

If you are an X-Cart GOLD administrator/provider, you can import and export:

  • config data,
  • states,
  • users,
  • categories (including international category descriptions),
  • products (including international product descriptions, featured products and product links),
  • destination zones,
  • taxes (including tax rates),
  • shipping rates,
  • orders (export only, including order items),
  • other types of data (depending on the set of enabled modules and add-ons).

If you are an X-Cart PRO administrator, you can import and export all types of X-Cart data:

  • config data,
  • states,
  • users,
  • categories (including international category descriptions),
  • products (including international product descriptions, featured products and product links),
  • destination zones,
  • taxes (including tax rates),
  • shipping rates,
  • orders (export only, including order items),
  • other types of data (depending on the set of enabled modules and add-ons).
Note: when exporting products, destination zones, tax rates, shipping rates and orders, it is possible to export all data or just the data of a specific provider. Also note that these types of data can only be imported specifically for different providers (which means that before importing you will be supposed to specify the name of the provider for whom you are importing the data).

If you are an X-Cart PRO provider, you can import and export:

  • your products (including international product descriptions and product links),
  • your destination zones,
  • your tax rates,
  • your shipping rates,
  • your orders (export only, including order items),
  • other types of data according to your access privileges (depending on the set of enabled modules and add-ons).

Exporting Data

You can export the data from your X-Cart store in the 'Export data' section of your store's admin area.

To access this section:

  1. Go to the 'Import/export data' section of your store's admin area by clicking on the Import/Export item on the Tools menu.
  2. On the menu at the right side of the 'Import/export data' section , click the Export data link.

    The 'Export data' section looks similar to this (just the section [+] Select provider is available only to X-Cart PRO administrators, and the set of data types, available for exporting, varies depending on the type of user account being used):

    Export.gif

To export data to a CSV file:

  1. Use the settings of the 'Export data' form to specify, what data you wish to be exported, and how you wish that to be done:
    • (If you are an X-Cart PRO administrator) If you wish to export not all the data, but just the data of a specific provider, specify the username of the provider, whose data you wish to export: expand the 'Select provider' subsection of the 'Export data' form by clicking on the [+] Select provider link, enter the username of the provider in the corresponding field and then click the Go button.
    • Use the 'CSV delimiter' drop-down box to select the delimiter you wish to be used in the resulting CSV file (Semicolon, Comma, Tab).
    • If you wish the export spreadsheet to be split into several parts (each in a separate file), use the 'Data rows per file' field to specify the maximum number of data rows that can be contained in one file. Leave the field empty or enter 0 (zero) if you do not want to split the export file.
    • Specify whether you wish to export images (Yes/No).
    • Use the field 'Category path separator for "category" field' to type in the character or sequence of characters that you wish to be used as the 'category' field separator in the export CSV file. You can use any character or sequence of characters that does not occur in the category names.
    • Select the data that needs to be exported:
      • If you are going to export USERS, PRODUCTS or ORDERS, adjust the respective data ranges (use the links in the RANGE column).
      • Select the types of data that need to be exported (select the check boxes next to the names of these types).
  2. Click the Export button at the bottom of the 'Export data' form. X-Cart should now start exporting the data. The export packs will be saved to the /xcart/var/tmp directory.
    When the export process is over, you will see an information box with a confirmation message and the link to the export packs.
  3. Click on the Export packs link in the Information box or scroll down to the bottom of the 'Export data' section. On the 'Export data' form, you will see a new subsection 'Export packs', which lists the CSV files you have just created with the exporting procedure.
  4. Download the export pack files to your local computer by clicking on the filename links.

If you wish to remove the export packs from the directory where they were saved by X-Cart, (/xcart/var/tmp), you can delete them through the X-Cart interface.

To delete export packs:

  1. Expand the 'Export packs' subsection of the 'Export data' form.
  2. Select the check boxes next to the export packs that need to be deleted.
  3. Click the Delete selected button. The selected export packs should be deleted. You will see an information box with the confirmation message.

Importing Data

You can import the data from your X-Cart store in the 'Import data' section of your store's admin area.

To access this section:

  1. Go to the 'Import/export data' section of your store's admin area by clicking on the Import/Export item on the Tools menu.
  2. On the menu at the right side of the 'Import/export data' section, click on the Import data link.

    The 'Import data' section looks similar to this (just the section [+] Select provider is available only to X-Cart PRO administrators, and the set of data types, available for exporting, varies depending on the type of user account being used):

    Import.gif

To import data to X-Cart:

  1. Prepare the CSV file to be imported. Make sure it contains all the required fields (for the list of the fields that are required for a certain data type, please refer to the table in the 'Import options' section of the 'Import data' form (accessible by clicking on the [+]Import options link). Make sure that the types of data to be imported are listed in the table (if not, check whether the modules/add-ons that use those data types are enabled).
  2. Use the options of the 'Import data' form to specify, what data you wish to be imported, and how you wish that to be done:
    • (If you are an X-Cart PRO administrator) Certain types of X-Cart data (like PRODUCTS, SHIPPING RATES, TAX RATES, etc.) are not displayed and cannot be imported without specifying the provider they belong to. If you are importing provider-specific data, be sure to specify the username of the data owner: expand the 'Select provider' subsection of the 'Import data' form by clicking the [+] Select provider link, enter the username of the provider in the corresponding field and then click the Go button.
    • Use the 'CSV delimiter' drop-down box to select the delimiter that is used in the CSV file which you are going to import (Semicolon, Comma, Tab).
    • Specify the source of the import file:
      • Select the corresponding radio button to specify, whether the CSV file is located on the server where your X-Cart is installed, on your local computer or some web-accessible location (Server, Home computer, URL).
      • Depending on the selected location, provide the file path or URL.
    • Expand the 'Import options' section by clicking on the [+] Import options link and adjust the settings in this section:
      • If you are importing users, specify, whether customer passwords are encrypted (Yes/No).
      • If you are importing products, set the Default category (a category where your products will go if you have not specified a category in the 'Category' column. Just skip this field if you have specified the category in your CSV file).
      • If your CSV file mentions subcategories (for example, if some of the products being imported will go to subcategories), make sure that the Category path separator for "category" field specified in the 'Import options' section is exactly the same as the separator used in your CSV file.
      • If you are importing images (thumbnail images, product images, category icons, etc.) and wish to import them from a single directory, specify that directory as Directory where images are located.
      • If your store's database already contains data of the types that you are going to import, and you wish to drop that data before importing data from your spreadsheet, select the DROP check boxes next to the names of the data types that need to be dropped. (If you do not select any check boxes, the data from your spreadsheet will simply be added to the database).
  3. Click the Import button at the bottom of the 'Import data' form. X-Cart should now start importing the data.

When the export process is over, you will see an information box with a confirmation message.