Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Easy Populate CSV Am I doing something Wrong?

Easy Populate CSV Am I doing something Wrong?

Locked

Views: 4,086

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
24 Jan 2009, 6:48 AM
#1
ozewolf avatar

ozewolf

New Zenner

Join Date:
Jan 2009
Location:
Sydney Australia
Posts:
15
Plugin Contributions:
0

Easy Populate CSV Am I doing something Wrong?

HiI have created producs in catagories in zen cart (Zen Cart 1.3.8aDatabase Patch Level: 1.3.8) & all work Fine
Tried using Easy populate but am stuck

I downloaded the csv file with some products
Used exel (numbers Actually) to import/open the csv i have added a product & followed the zen wiki on easy populate txt version
Uploaded the csv to the dir & in does that fine

Upload Results
Filename: Full-EP2009Jan25-1604.csv

But when i insert to db get this error warning

"Warning: array_flip() [function.array-flip]: The argument should be an array in /home/archidra/public_html/eStore/admin/easypopulate.php on line 1222" & the added product is not added

Have attached pic & uploaded csv file
Looking to find out what i am obviously missing/doing wrong :dontgetit

27 Jan 2009, 8:41 AM
#2
interrupt avatar

interrupt

New Zenner

Join Date:
Sep 2008
Posts:
4
Plugin Contributions:
0

Re: Easy Populate CSV Am I doing something Wrong?

Hi
There needs to be a header field EOREOR and it's value must always be EOREOR for each row

this is where you can download the latest I believe:

http://www.modhole.com/modhole/index.php?module=documents&JAS_DocumentManager_op=viewDocument&JAS_Document_id=2

I changed your file and uploaded it, maybe that works now, I dont have a spare zen cart to try importing it nor do i know what version of easypopulate you have

27 Jan 2009, 8:55 AM
#3
ozewolf avatar

ozewolf

New Zenner

Join Date:
Jan 2009
Location:
Sydney Australia
Posts:
15
Plugin Contributions:
0

Re: Easy Populate CSV Am I doing something Wrong?

Thanks I am looking into this to see where i am going wrong
Appreciate the help:smile:

27 Jan 2009, 10:50 AM
#4
shk avatar

shk

New Zenner

Join Date:
Oct 2006
Posts:
62
Plugin Contributions:
0

Re: Easy Populate CSV Am I doing something Wrong?

Is he talking about the csv-mod of EP? If so that EOREOR-stuff is gone.

27 Jan 2009, 10:53 AM
#5
ozewolf avatar

ozewolf

New Zenner

Join Date:
Jan 2009
Location:
Sydney Australia
Posts:
15
Plugin Contributions:
0

Re: Easy Populate CSV Am I doing something Wrong?

SHK:

Is he talking about the csv-mod of EP? If so that EOREOR-stuff is gone.
Yes that is the one i am trying to get working CSV

27 Jan 2009, 11:16 PM
#6
interrupt avatar

interrupt

New Zenner

Join Date:
Sep 2008
Posts:
4
Plugin Contributions:
0

Re: Easy Populate CSV Am I doing something Wrong?

Sorry to support the wrong version, I haven't seen any kind of useful documentation of the changes in that version, but your php error log may be helpful if you can access it.
The warning could happen if fgetcsv(or similar function) doesn't create an array. Maybe Array_flip was going to use the array after import but doesn't get it.
so.. maybe your file permissions need checking or something is wrong with the mod? I don't use it i use the tab-delimited file version
good luck! :)

27 May 2009, 9:27 AM
#7
criketman avatar

criketman

New Zenner

Join Date:
Feb 2009
Posts:
2
Plugin Contributions:
0

Re: Easy Populate CSV Am I doing something Wrong?

I found this online, which solved my problem. (I just switched my PHP version to 5)

error:
Warning: array_flip() [function.array-flip]: The argument should be an array in path\path on line 1224

issue: this occurs if you are using the latest version of easypopulate on a PHP 4 server.
fix :
The length parameter has been set to 0 on line 1222, which is OK for PHP5, but PHP4 needs a real number. I changed mine to 1000 and it now works fine.

was:
} else if($filelayout = array_flip(fgetcsv($handle, 0, $csv_deliminator, $csv_enclosure))) {

now:
} else if($filelayout = array_flip(fgetcsv($handle, 1000, $csv_deliminator, $csv_enclosure))) {

27 May 2009, 2:20 PM
#8
affordablewebs avatar

affordablewebs

New Zenner

Join Date:
May 2009
Posts:
26
Plugin Contributions:
0

Re: Easy Populate CSV Am I doing something Wrong?

Hello,

Since you've now gotten your questions answered, perhaps you (or someone else) can assist me. oilshackbodyproducts.com/zencart is the site and if you look at the burning oils category, you'll notice I have an attribute "scent". I have far more attributes (approx 130) for fragrance oils. I created a comma delimited file in excel with the scents for fragrance oils, but don't fully know how to alter the file, upload it, then access it. :unsure:

I'm attaching for any possible assistance.

Thank you!