Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

getting 'easy' csv import to work


Guest

Recommended Posts

I can't get the 'easy csv import' contribution to work.

 

I get an error when trying to import the file that reads "Row 2: The count of fields is wrong" (which is the first row as it ignores the first row) but I have the proper number of fields (columns) in my file.

 

Any ideas? (I don't think I can attach files here can I...?)

Link to comment
Share on other sites

I can't get the 'easy csv import' contribution to work.

 

I get an error when trying to import the file that reads "Row 2: The count of fields is wrong" (which is the first row as it ignores the first row) but I have the proper number of fields (columns) in my file.

 

Any ideas? (I don't think I can attach files here can I...?)

 

 

I am having this same problem...

Link to comment
Share on other sites

  • 2 weeks later...
I can't get the 'easy csv import' contribution to work.

 

I get an error when trying to import the file that reads "Row 2: The count of fields is wrong" (which is the first row as it ignores the first row) but I have the proper number of fields (columns) in my file.

 

Any ideas? (I don't think I can attach files here can I...?)

 

I had same problem and this fixed

Change the delimiter: ";" fields separator if you leave blank {TAB} is used

change it to a comma ","

Edited by mrbuddd
Link to comment
Share on other sites

  • 2 years later...

Hello!

The problem appears with thumbnail images when the image name have + (pluses) in name. Thumbnail will not show up but when you click on it, the regular popup image appears. Looks like get_image_from_url function must be corrected somehow. I also use 'On The Fly' Auto Thumbnailer using GD Library 2.1 contribution. Please help me to figure out this. Here is the function:

 

function get_image_from_url($url, $filename) {
if(function_exists('curl_init')) {

	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

	$out = curl_exec($ch);
	curl_close($ch);

	if($out === false) {
		return false;
	}

	if($handle = fopen(DIR_FS_CATALOG_IMAGES . $filename, 'wb')) {
		fwrite($handle, $out);
		fclose($handle);
	}

	return true;
}

csv_import_message(CSV_CURL_MISSING_CANT_IMPORT_REMOTE_IMAGE, 'warning');
return false;
}

Edited by pleasureidea
Link to comment
Share on other sites

  • 7 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...