How to write custom CSV import routine

This forum is where we'll mirror posts that are of value to the community so they may be more easily found.
Post Reply
User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

How to write custom CSV import routine

Post by mazhar » Wed Feb 11, 2009 10:11 am

You can write your own import routines to import the CSV data directly from the admin pages. I thought it would be helpful for the community to have some sample of custom CSV import routine. This sample is about how to import users from a CSV file. This is just a sample and provides a basic over view of the user import. It will only import the data for fields that are available with user object. For example the First and last name fields are available in address class so it will not import that information. Obviously that could be done but that will be a complected task and it would be better to keep the sample simple. The sample targets advance users who may want to import their custom CSV information.

Niraj8428
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Fri Feb 20, 2009 9:13 am

Re: How to write custom CSV import routine

Post by Niraj8428 » Sat Feb 21, 2009 3:50 am

hi,

From where to get CommerceBuilder.Utility? if you can please upload the complete sample, as it contains only one page and no references are there, even one function "AlwaysConvert" is also missing.

Thanks.
Niraj

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How to write custom CSV import routine

Post by mazhar » Sat Feb 21, 2009 3:56 am

These classes are used from dlls inside the AbleCommerce website's bin. So if you have your demo AbleCommerce store just put this module in its admin folder and then run the page it will work.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How to write custom CSV import routine

Post by mazhar » Thu Feb 26, 2009 5:46 am

How to import credit card data using custom CSV import routine
viewtopic.php?f=42&t=9839

ozlighting
Lieutenant (LT)
Lieutenant (LT)
Posts: 53
Joined: Tue Mar 24, 2009 9:49 pm
Contact:

Re: How to write custom CSV import routine

Post by ozlighting » Thu Jun 04, 2009 9:19 pm

is it possible to do something similar for Product Options given that there are 3 different dependent tables involved?

if not, how does everyone else import product options? XML is VERY tedious and csv is not supported. Any hints on how to efficiently create or edit XML? or any other hints on how to import Product Options?

Cheers,

Lance
Australian Online Lighting Store

log on and light up...

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How to write custom CSV import routine

Post by mazhar » Fri Jun 05, 2009 4:43 am

In order to edit XML you can use XML Marker, its a small free XML editor.
http://symbolclick.com/

Post Reply