Difference between revisions of "X-Cart:Importing and Exporting Data"

From X-Cart 4 Classic
Jump to: navigation, search
(Importing Data)
Line 97: Line 97:
 
{{Note|In the older versions of X-Cart, use the Import/Export tools available on the <u>Management</u> menu.}}
 
{{Note|In the older versions of X-Cart, use the Import/Export tools available on the <u>Management</u> menu.}}
  
The <u>'Import data</u>' 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):<br><br>[[Image:import.gif|520px]]
+
The <u>'Import data</u>' 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):<br><br>[[Image:import.gif]]
  
 
'''To import data to X-Cart''':
 
'''To import data to X-Cart''':

Revision as of 10:24, 26 February 2011

Import/Export procedures in X-Cart

X-Cart 4.4.x features exporting and importing literally all types of data used in X-Cart. The export and import procedures facilitate the updates of your store data and ensure the consistent transfer of the data when upgrading the store or moving it to a new location.

The basics of the export procedures are available in the Exporting Data section; for the import procedures - in the Importing Data section.

The detailed information on X-Cart's import and export features 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 or export all types of data used in X-Cart:

  • 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 or orders, you can export all data or just the data of a specific provider. Also, please note that these types of data can be imported for different providers only (i.e. you will be expected to specify the name of the provider you are importing the data for before starting the import).

If you are an X-Cart PRO provider, you can import or 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

X-Cart 4.4or above

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.
Note: In the older versions of X-Cart, use the Import/Export tools available on the Management menu.

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

X-Cart 4.4or above

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.
Note: In the older versions of X-Cart, use the Import/Export tools available on the Management menu.

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.