View Cart|Wish List|Login|Register | Wednesday, February 08, 2012
 
 Search   ..:: Support &
    Service
  Forum
::..
 
    Minimize
www.catalooksupport.com ::: another place for CATALooK.netStore support

    Minimize
SearchForum Home
     
  DotNetNuke  CATALooK.netStore  Data Import inf...
 Data Import information needed
 
 10/13/2006 9:46:39 PM
empulse
11 posts


Data Import information needed
 Modified By empulse  on 10/13/2006 9:52:35 PM)
I have several questions regarding data import.
My scenerio:

The only products that I have are files.  Each file has a separate ID number and is assigned one of 15 categories.  The files are not priced individually, but made available on a subscription basis. 

If a customer subscribes - they are allowed to download an unlimited number files. 

In the future I would like several subscription levels. 
1.) subscriber may download any file for the duration of his subscription
2.) subscriber may download a limited number of files (say 10) for the duration of the subscription.
3) certain files may be downloaded by registered users  without a subscription.

Questions Regarding Data Import
===================
How should I specify the folder where the files will reside on the server - Do I  include the physical (or virtual??) path as part of the file name or specify it elsewhere, or does catalook have a default?

How should the "items" table in MS Access be formatted:?
The "download" field in table Cat_products is boolean, but in the the sample access file the field is text. 

Also the field lengths and types in the sample file do not always match those cat_products.  Should I change the design of the MS Access "items" table to match Cat_products before I import products?

Which fields are required and which are optional?

My files are mostly PDF, but ther are DOC and PPT files as well - will Catalook zip them or do I need to do that myself before I upload them.

I would really like to see DNNsoft expand the documentatin on the data import - a field-by-field specification of both the import specs and the CAT_products table would be very useful.
 10/14/2006 11:19:36 AM
host
1831 posts
1st


Re: Data Import information needed
 Modified By host  on 10/14/2006 11:23:11 AM)

1) I have marked the answer in the Data Import chapter of the manual below in red.
2) Please use the sample import file catimportitems.xls as template or export some items via item export from module CAT_Products and use this file. Also there is an xsd file: catimport.xsd if you want use XML import files.
3) You must not change any field types or lengths. As I know you can not change field lengths of xls (Excel) files. You can do that for MS Access files but I guess it is not necessary. If there are any problems they will be listed in the import log e.g.: 'Field missing or wrong data type: Import File Field Name'
4) The field Category1ImportID is required. It can also not be removed if you use the 'Edit Item Import Query' function from module CAT_StoreSettings.
5) CATALooK will not change the file type. For bulk upload you can also use admin -> file manager.
6) We will do that. A database schema (DataBaseSchema.JPG) can be found in folder documentation\.

 

Data Import

Import (bulk upload) of products and categories

  • Click on the link: [Edit Item Import Query] to select which fields should be imported.
  • Use the template files (catimportitems.mdb, catimportitems.xls, catimportitems.xml) in folder \CATdat to test the import.
  • Select or upload and select an import db file and click on [Start Product Data Import].
  • You can also add the import job to the DNN scheduler e.g. if you want update the stock in defined periods and sync your ERP system with the store database. The scheduler import job compared if the current import file is newer than the last imported. If not, this line will be added to the scheduler history: [CATALooK Item Import waits for newer data]. Choose: [Add Item to Schedule] on DNN Host Schedule TAB and enter: [CATALooK.ItemImport, CATALooKStore] into field: [Full Class Name and Assembly] to add this job to Schedule.
  • To reimport data from product data export of module CAT_Products you must manually change the table, node or sheet name to [items].

Key Fields:
Category1ImportID (required field) and Category2ImportID: Portal level unique key fields for category import data synchronization. These fields correspond with the field: Category Number of module CAT_Categories.
ProductNumber: Portal level unique key field for product import data synchronization and product database synchronization between portals. This field correspondend with the field: Item code of module CAT_Products.

Assign advanced categories to products via bulk import:
The Field: AdvCatsImportIDs contains the advanced category Import ID’s separated by a semicolon ‘;’. An import ID for an advanced category can be defined via field Import ID of module CAT_AdvancedCategories.

Productimage / DownLoadFile / Category1Image / Category2Image:

There are 3 possible values for this field:

1) Image name without path: Images in portal root folder e.g.: portals\0

2) Full URL to the images: http://...

3) FileID from DNN files table. Format: FileID=x (case sensitive).Where x is the numeric FileId from the DotNetNuke Files table.


Please Note:   All UnitCost columns must be formatted as number without any currency symbol.

                        Do not mix numeric and not numeric values in one column.

                        Don’t use CR commands in Excel cells (use HTML <BR> or shift + Enter).

 

Typical Excel Uploading Problem: 

The first row of a column must contain data which is representative of what the rest of the data in the column will contain (same datatype). To fix this, make a Dummy Product and keep it as the first item in the sheet. Set a representative value for each cell and set the Archive cell to “False” so it will not show up on the site.  

 10/14/2006 6:39:41 PM
empulse
11 posts


Re: Data Import information needed
Thanks for the answer. 

I read the docs pretty thoroughly before I submit questions - the section explaining how to format the filenames IS NOT IN the data import section of my document - (I just re-checked it) Maybe I have an older version.  I also studied the databaseSchema.jpg file you mentioned - but it really did not tell me what I needed to know.  It only shows the relationship between tables, does not indicate which fields are the linking fields.

While the purpose of some of the fields is obvious - others are not.  Often one has to search through the documentation to figure out what others are.  What would really be useful is a matrix with the name of each field and a explanation of its purpose and other specs, similar to how the DNN skinning documentation lists the skin objects.

 10/18/2006 11:03:09 AM
host
1831 posts
1st


Re: Data Import information needed

This must be an older version. If you don't get the update information emails, please send a request to: support@dnnsoft.com.

We will add this information to the manual.

  DotNetNuke  CATALooK.netStore  Data Import inf...

    Minimize
www.excommerce.com ::: eXcommerce are a dedicated reseller of Catalook. If you want the features of catalook without the hassle of setup and maintenance and want some extra support options please check our services.
      

References / Live Stores | Forum | Trial Downloads | Resource Directory | Release History | Support Requests | Referral Program | Contact
CATALooK |  Terms Of Use |  Privacy Statement
Copyright 2002-2010 CATALooK