Zen Cart Logo
Forums / Addon Admin Tools / Easy Populate 1.2.5.4 support

Easy Populate 1.2.5.4 support

Views: 1,301,174

Results 2,081 to 2,100 of 3,834
5 Jan 2009, 4:34 PM
#2081
jeff_g avatar

jeff_g

Zen Follower

Join Date:
Oct 2007
Posts:
132
Plugin Contributions:
0

Easy Populate 1.2.5.4 support

ive tried saving as UTF format, ASCII format, ISO...etc

EP does nothing with encoding of any sort.

Did you look at the file using a simple editor such as notepad? A tab delimited file should look fine in Notepad except for column not lining up. You should be able to read everything.

You mention a new computer. Did your old PC use Office 2007? 07 uses totally new file formats vs. any prior version.

5 Jan 2009, 4:42 PM
#2082
jeff_g avatar

jeff_g

Zen Follower

Join Date:
Oct 2007
Posts:
132
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

swamyg1:

1.2.5.5 is the latest version right? Just asking cuz it says last updated Dec 01 2006.

Also, are questions/concerns regarding modhole's easy populate advanced handled here? Or are most people using 1.2.5.5 here?

Thanks!

The "Latest" version is pretty old. The author no longer updates and seems to have abandoned the mod. It's a great mod and many people use it and try to help others.

Advanced is not supported here. That appears to be a total re-write and is supported through the authors website. I hope its imporved, but last time I looked it was taking him weeks to respond there.

5 Jan 2009, 8:00 PM
#2083
rickiesdiscount avatar

rickiesdiscount

Zen Follower

Join Date:
Jul 2008
Posts:
229
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Jeff G:

EP does nothing with encoding of any sort.

Did you look at the file using a simple editor such as notepad? A tab delimited file should look fine in Notepad except for column not lining up. You should be able to read everything.

You mention a new computer. Did your old PC use Office 2007? 07 uses totally new file formats vs. any prior version.

Yes i used 2007 on my old computer...that is what it doesn't make sense it is really weird..

6 Jan 2009, 1:28 PM
#2084
phazei avatar

phazei

New Zenner

Join Date:
Jan 2009
Posts:
31
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

New: CSV Easy Populate... heh.

OMG, I went through the code easypopulate.php and it's horrible. And judging from langers comments, he wasn't a very experienced programmer at the time. Although I've never seen the code for EPA3, so he could have got better.

Anyway, I haven't even used it yet really, I was just really bored tonight and couldn't sleep. :blink: So I rewrote a lot of the Download EP, Create EP, and Upload EP File code. Mainly in relation to file types. It now creates normal CSV files and accepts them. I was looking at the tab deliminated text files, and couldn't stand them.

Also, because of those text files, there is a TON of really convoluted code that is not necessary. I was able to replace some pages by just a couple lines of code.

So if you would prefer to use CSVs, then this is just what you need. There are options at the top of the file for how you want to deliminate and enclose the lines.

One thing I did not do was mess with (update) that split file feature, so it will NOT work. That code was much to sloppy to take the time to understand. Though I did add

set_time_limit(1200);
ini_set('max_input_time','1200');

to the top of the file so that should be good enough for larger files.

One nice thing is that retarded EOREOR is completely gone and totally unnecessary. It would actually break it now.

If you just replace the easypopulate.php file in the admin folder with the attached csv one, it will be updated.

Note: your old product backups won't work, but you can export new ones with the csv easypopulate that should work just fine.

EDIT: Almost forgot, this will ONLY work with PHP > v5.1

6 Jan 2009, 2:50 PM
#2085
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

How realistic is adding Meta tags support for the Free easy populate version. I know it's in advanced, but I am hearing about a lot of problems with that version.

If I could just add it to 1.2.5.5 I would be all set!

6 Jan 2009, 5:00 PM
#2086
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Location:
Dark Side of the Moon
Posts:
986
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

phazei:

OMG, I went through the code easypopulate.php and it's horrible. And judging from langers comments, he wasn't a very experienced programmer at the time. Although I've never seen the code for EPA3, so he could have got better.

Anyway, I haven't even used it yet really, I was just really bored tonight and couldn't sleep. :blink: So I rewrote a lot of the Download EP, Create EP, and Upload EP File code. Mainly in relation to file types. It now creates normal CSV files and accepts them. I was looking at the tab deliminated text files, and couldn't stand them.

Also, because of those text files, there is a TON of really convoluted code that is not necessary. I was able to replace some pages by just a couple lines of code.

So if you would prefer to use CSVs, then this is just what you need. There are options at the top of the file for how you want to deliminate and enclose the lines.

One thing I did not do was mess with (update) that split file feature, so it will NOT work. That code was much to sloppy to take the time to understand.

One nice thing is that retarded EOREOR is completely gone and totally unnecessary. It would actually break it now.

Phazei! I could not agree with you more. But if you think langer's free version is bad, go take a look at OSC's!

I also did some editing of this mod (a few pages back) to add quantity discounts... something that's be sorely missing. And like you, I started hacking out whole sections of useless code. I know some people have successfully used the auto splitting feature, but personally I think this code can be removed in favor of better data management.

I'm looking forward to the 1.4 wrap up and also 2.0. The database changes will necessitate a rewrite of this mod.

One open question: Are there any drawback/advantages to CVS over Tab delimited? Thinking foreign character set support, punctuation, etc...

-cj

6 Jan 2009, 10:11 PM
#2087
phazei avatar

phazei

New Zenner

Join Date:
Jan 2009
Posts:
31
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

chadderuski:

One open question: Are there any drawback/advantages to CVS over Tab delimited? Thinking foreign character set support, punctuation, etc...

-cj

It does support all punctuation. You should be able to use any characters you want, including returns and tabs and quotes. Nothing is converted to <br> in the description. I did that because ZenCart has a textarea for the description field.

A couple details on csv:
Usually everything is separated by a comma. Encapsulation (quotes) is usually only required when a special character is used, such as a separating or encapsulation character.

A line containing the following items:
entery one
second, item

"i am" quoted"
123.32

Would look like this:
entery one,"second, item",,"""i am"" quoted""",123.32

Quotes are doubled up if used and surrounded by quotes.

As long as the files are opened in a spreadsheet editor that will save as CSV, it should all be taken care of. That's just how it would look like if you opened it with notepad.

For the special case of froogle, I just have it check if it's froogle, if so, change delimination to "\t" (tab) and encapsulation to " " (space). The spaces won't interfere with anything, the php csv function just doesn't allow no character listed for encapsulation.

I was also thinking about the auto splitting feature and its purpose. Last night I had been up for a while so hadn't realized this. I was thinking the splitting feature was to prevent upload timeouts, but if that was the case, it would timeout before it even finished uploading the original file to split. That's why I added the max_input_time change at the beginning. But that wasn't the purpose at all. And ini_set might not work for everyone.

It was to prevent script timeouts, which is really simple to get around. It's really laughable that so much programing went into that when all the original programmer needed to go was add the set_time_limit. WOW.

So in this attached version, I removed everything that has to do with the splitting, which is like 4 pages of code.

Another note: if you see a tiny little box with a "?" in it in Excel next to your line feeds, it's ok. Linefeeds saved from the description field use \r\n, but excel only expects only \n. So it shows the \r as a square.

7 Jan 2009, 4:05 AM
#2088
phazei avatar

phazei

New Zenner

Join Date:
Jan 2009
Posts:
31
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

MetaTag support: products only.

For categories won't be coming.

I'm just really OCD and ADD, I need to get back to work...

I also rewrote lots of the sql statements and optimized them a bit.

Also noticed an issue where Excel changes the timestamp from a SQL to the native windows setting. I added some code so the timestamp can be in just about any format. Even "January 15th, last year" should work, heh.

Note: i deleted csv v1&v2

7 Jan 2009, 4:24 AM
#2089
phazei avatar

phazei

New Zenner

Join Date:
Jan 2009
Posts:
31
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Fixed a line for the date function for the specials date items

7 Jan 2009, 5:09 AM
#2090
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

WOWEEE! Meta tag support too! Phazei you totally rock. You are doing so many people a great services, hats off to you!!!

7 Jan 2009, 3:09 PM
#2091
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Actually, my .csv file is not uploading propertly. I get no error message, just no status of anything... and products don't upload.

Any ideas what could be causing this?

This is what I get:

Upload Results

File uploaded.
Temporary filename: /Applications/MAMP/tmp/php/phpjQuYHW
User filename: Full-EP2009Jan04-1806 copy.txt
Size: 22527

Upload Complete

7 Jan 2009, 8:50 PM
#2092
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Location:
Dark Side of the Moon
Posts:
986
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Phazei,

Check this post for my version with quantity discount working:

http://www.zen-cart.com/forum/showpost.php?p=641456&postcount=2022

From my own research, the Froogle code is defunct, and there are no longer any mods in the downloads area. Numinix's udated his feeder for Google Base, but there were many changes between the two that make all this froogle code outdated. So I killed it in my version.

I also think the "Advance Smart Tags" is unnecessary. It may be a "cool idea", but how many people have actually used it?

I also killed out the section on product attributes in favor of a future re-write.

Glad to see someone else interested in poking at this code!

-cj

7 Jan 2009, 9:11 PM
#2093
phazei avatar

phazei

New Zenner

Join Date:
Jan 2009
Posts:
31
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

swamyg1:

Actually, my .csv file is not uploading propertly. I get no error message, just no status of anything... and products don't upload.

Any ideas what could be causing this?

Is that a file you exported with the version I made? I noticed it ended in .txt
My version creates .csv
There are lots of internal changes to the file. It won't work with files downloaded with other versions.

In particular, it needs to be a comma deliminated file and all that EOREOR stuff is gone.

Try doing a complete download, and then uploading that same one.

During my testing I found that if you upload any file that doesn't get parsed properly, it just says upload and puts it in your temp folder. Even zip and stuff.

7 Jan 2009, 9:25 PM
#2094
phazei avatar

phazei

New Zenner

Join Date:
Jan 2009
Posts:
31
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

chadderuski:

From my own research, the Froogle code is defunct, and there are no longer any mods in the downloads area. Numinix's udated his feeder for Google Base, but there were many changes between the two that make all this froogle code outdated. So I killed it in my version.

While I removed the bad code I replaced, I didn't want to remove or break anything else. Like that Linda's Header Controler 2.0 thing, and lots of other hacks people added to it to work with lots of other peoples plugins. Chances are all that crap isn't needed, but it wasn't necessary to remove it now.

Also, I think googlebase has files similar to froogle, chances are the columns are just changed, it would be really simple to fix I believe if I knew what the new column headers were supposed to be.

There seems to be more functionality built into EP than is presented on the surface, there are lots of settings in there to do more stuff with a simple flip. It's written so it automatically adds new categories if you have a product in one that doesn't exist yet.
I noticed ZC won't allow products in a category that has a subcategory, not sure what would happen if you did that in a file. That 7 category depth limit is also simply controlled by a variable.

I did my best to not really bother looking how it worked, only what was needed and only making sure what I did didn't break the stuff written below.

Oh: and I remember seeing some code in EP that talked about quantity pricing already in it.
nm: maybe I was tired at the time and dreaming, can't find it now

8 Jan 2009, 3:03 AM
#2095
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

phazei:

Is that a file you exported with the version I made? I noticed it ended in .txt
My version creates .csv
There are lots of internal changes to the file. It won't work with files downloaded with other versions.

In particular, it needs to be a comma deliminated file and all that EOREOR stuff is gone.

Try doing a complete download, and then uploading that same one.

During my testing I found that if you upload any file that doesn't get parsed properly, it just says upload and puts it in your temp folder. Even zip and stuff.

Hmm very funny. I tried what you said with the same file but I'm getting the same thing. Nothing inserts into the DB and no report of anything that's happened. I downloaded the file, made a couple of price edits and reuploaded the same file. I've tried a dozen times and I haven't been able to get an upload.

Upload Results

File uploaded.
Temporary filename: /Applications/MAMP/tmp/php/phpK9769Q
User filename: Full-EP2009Jan07-1806.csv
Size: 18473

Upload Complete

8 Jan 2009, 3:24 AM
#2096
phazei avatar

phazei

New Zenner

Join Date:
Jan 2009
Posts:
31
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Just for testing purposes cut the csv down to like 10 products and see if it still does the same thing.

Then you could send me the csv and I'll see if I can figure out why.

8 Jan 2009, 4:24 AM
#2097
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

phazei:

Just for testing purposes cut the csv down to like 10 products and see if it still does the same thing.

Then you could send me the csv and I'll see if I can figure out why.

Ok, I tried that but nothing happened. I've attached the zip here.

8 Jan 2009, 5:39 AM
#2098
phazei avatar

phazei

New Zenner

Join Date:
Jan 2009
Posts:
31
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

I found the problem and was able to import it in just fine.

It's a CR/LF aka \r\n aka chr(13)chr(10) issue.

The function I use only uses LF as a end of line terminator.
That's fine for windows and linux users, since they use that (windows uses both). But I'm guessing you're using a mac, since all your lines were terminated by a CR only, which doesn't work, unless you're on a mac...

Chances are if you just exported and imported without editing, it would probably work, but that's useless.

You need to save it windows compatible.

And if you're not on a mac... I'm lost as to why you're lines end in CR instead of LF.

8 Jan 2009, 5:45 AM
#2099
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

phazei:

I found the problem and was able to import it in just fine.

It's a CR/LF aka \r\n aka chr(13)chr(10) issue.

The function I use only uses LF as a end of line terminator.
That's fine for windows and linux users, since they use that (windows uses both). But I'm guessing you're using a mac, since all your lines were terminated by a CR only, which doesn't work, unless you're on a mac...

Chances are if you just exported and imported without editing, it would probably work, but that's useless.

You need to save it windows compatible.

And if you're not on a mac... I'm lost as to why you're lines end in CR instead of LF.

I am on a mac, and your solution totally fixed my problem!

Thanks for your help, and for busting out a much improved mod!!!

8 Jan 2009, 5:52 AM
#2100
phazei avatar

phazei

New Zenner

Join Date:
Jan 2009
Posts:
31
Plugin Contributions:
0

Re: Easy Populate 1.2.5.4 support

Fixed: when creating new manufacturers it didn't add to both mfg db's, so if you went to add a url later on, it wouldn't work, and it broke ZM.