Webmastersite.net
Register Log In

Import function will not import 1 field

Comments on Import function will not import 1 field

hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Sep 09, 2007 - 12:58 PM:

Dear Paul,

I have looked through your forums as well as the help files and was able to make the necessary changes to the Import template to allow me to import from a CSV. Thank you.

Unfortunately, for some reason which I cannot find any reason for it will not import 1 of the fields. I have other fields what are new and have imported flawlessly, but for some reason this particular one will not import.

I have tried changing the position of the field - and the corresponding number on the Import page. I have changed the LOC name and value in the template thinking that it was too long or needed to match the field code it created when I added the field neither change worked.

I am out of ideas at this point, do you have any I can try to get this to work? I would appreciate any help you can give me regarding this.

Sincerely,
Marilyn
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 10, 2007 - 4:32 AM:

Let me know what the field name is, post the template you're using, and preferably provide a screenshot of the values you've set for the positions and sample data.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Sep 10, 2007 - 9:22 AM:

Dear Paul,

Thank you very much for looking into this for me. I have attached the following files:

- a screenshot of the import options page
- the import template I edited to show the additional fields I added
- a text file with 1 line of test data to import

The field I am having trouble with is the "Show Location" field. Right now the template shows [SHOWLOCATIONLOC], but I have tried changing it to a shorter name without any luck. And when I added the field it gave me the code of [LINKSHOWLOCATION].

If you need any other information please let me know.

Thanks.

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 10, 2007 - 10:48 PM:

Fields with 'loc' in their names won't work. Changing
$f = str_replace('loc', '', $key);
to
$f = rtrim($key, 'loc');
in admin/importer.php should fix that.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Sep 10, 2007 - 11:08 PM:

Hi Paul,

That did it! Thank you so very much.

Marilyn
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.