User guide - Magelynx.com

 Product Import/Export
User Guide
pragmacommerce.com
User Guide
Installation Usage Import Products Manage Import Profiles Use Import Profiles With Command Line Interface (CLI) Scheduled Import (Cron job) Export Products Manage Export Profiles Use Export Profiles With Command Line Interface (CLI) Scheduled Export (Cron job) Installation
1.
2.
3.
4.
5.
6.
Extract your module distribution archive file and copy it’s files into your Magento root folder (where the folder ​
app/​
is placed) Log in to admin area Click on menu item “System” / “Cache Management” Select all cache types and refresh them Give the 777 permissions to folder ​
app/code/local/Pragma/DataTransfer/​
recursively Give the 777 permissions to folder ​
lib/pragma/datatransfer​
recursively After these actions the module can be used. Usage
The module consists of 2 pages: ­ Export Profiles ­ Import Profiles These pages can be found in top menu section “Catalog” / “Manage Products” as shown on the screenshot: Import Products
The page “Import Profiles” allows you to import products from remote source. The remote source can be specified in section “Select CSV source”. In there, you can chose from what kind of location to get the import data. Such location can be one of following: ­ Google Spreadsheet which you can chose in the popup window if you click on button “Link...” ­ A file on your local PC which you can upload ­ a remote URL which you can specify You can preview the data parsed from the your source in the section “Import Grid”. Manage Import Profiles
By clicking the button “Save Profile”, you can save the parameters of your import session in order to load and reuse it later. You can also use the saved profiles in command line interface and for creating a scheduled cron job. Following parameters will be saved: ­ information about the data source Specifically, if you set “Google Spreadsheet” as a data source and attach a certain google spreadsheet by clicking on button “Link...”, then this link will be preserved when saving the profile. If you chose a remote URL as the data source (i.e. use a field “Fetch from URL”), then that URL will be preserved. ­ Google login session (a permission token for working with your Google Spreadsheets) Save Import Profile
Load Import Profile
Use Import Profiles With Command Line Interface (CLI)
In order to launch a saved Import Profile within a context of command line interface, run the following command while being inside Magento root folder: $ php shell/datatransfer/cli.php import importprofiles_import_magmi/​
your_profile_name In the above command, replace ​
your_profile_name ​
with the name of your profile which you defined when saving it Scheduled Import (Cron job)
You can use a save Import Profile for setting up a scheduled launching of your import session. For this you need to ​
add a corresponding entry into your cron table​
. Use a ​
command for launching your Import Profile​
as a task when adding your entry into cron table. Example: 0 20 * * * ​
php shell/datatransfer/cli.php import importprofiles_import_magmi/​
your_profile_name Such entry will cause cron to launch a profile called ​
your_import_profile ​
at 20:00 every day. Export Products
The page “Export Profiles” allows you to adjust following settings of the products export process: ­ define products filtering conditions (section “Build conditional filter”) ­ adjust the columns or fields of the exported products (section “Adjust fields mapping”) ­ select the destination of the export or where to send the export data (section “Select destination”) Additionally, you can preview the filtered products which will be exported in the section “Export Grid”. Manage Export Profiles
By clicking the button “Save Profile”, you can save the parameters of your export in order to load and reuse them later. You can also use the saved profiles in command line interface and for creating a scheduled cron job. Following parameters will be saved: ­ products filtering query (section “Build conditional filter”) ­ products fields to export and their headings (section “Adjust fields mapping”) ­ export destination (section “Select destination”) ­ Google login session (a permission token for working with your Google Spreadsheets) Save export profile
Load export profile
Use Export Profiles With Command Line Interface (CLI)
In order to launch a saved Export Profile within a context of command line interface, run the following command while being inside Magento root folder: $ php shell/datatransfer/cli.php export exportprofiles_catalog_product/​
your_profile_name In the above command, replace ​
your_profile_name ​
with the name of your profile which you defined when saving it Scheduled Export (Cron job)
You can use a saved Export Profile for setting up a scheduled launching of your export session. For this you need to ​
add a corresponding entry into your cron table​
. Use a ​
command for launching your Export Profile​
as a task when adding your entry into cron table. Example: $ php shell/datatransfer/cli.php export exportprofiles_catalog_product/​
your_profile_name Such entry will cause cron to launch a profile called ​
your_profile_name ​
at 20:00 every day.