Zen Cart Logo
Forums / Addon Admin Tools / EasyPopulate 4.0 Support Thread

EasyPopulate 4.0 Support Thread

Sticky

Views: 733,119

Results 321 to 340 of 3,671
04 May 2012, 21:16
#321
awhfy99 avatar

awhfy99

Zen Follower

Join Date:
Feb 2007
Location:
Burleson. Texas
Posts:
196
Plugin Contributions:
0

EasyPopulate 4.0 Support Thread

igi2011:

OK here's how I did it - my example shows the field I wanted to add (products_family), obviously yours will be different :)

There are three files to edit:
YOUR-ADMIN-FOLDER/includes/functions/extra_functions/easypopulate_4_functions.php
YOUR-ADMIN-FOLDER/easypopulate_4.php
and YOUR-ADMIN-FOLDER/easypopulate_4_import.php

You're using the existing 'upc' field each time to create a new product field.

Firstly open YOUR-ADMIN-FOLDER/includes/functions/extra_functions/easypopulate_4_functions.php. Search for

if ($ep_supported_mods['upc'] == true) { // UPC Mod
$filelayout[] = 'v_products_upc';
}

Now make a copy of this code directly underneath and change this to

if ($ep_supported_mods['family'] == true) { // Products Family Mod
$filelayout[] = 'v_products_family';
}

so you now have

if ($ep_supported_mods['upc'] == true) { // UPC Mod
$filelayout[] = 'v_products_upc';
}
if ($ep_supported_mods['family'] == true) { // Products Family Mod
$filelayout[] = 'v_products_family';
}

Now find the following a few lines further down:

if ($ep_supported_mods['upc'] == true) { // UPC Code mod
$filelayout_sql .= 'p.products_upc as v_products_upc,';
}

Copy this chunk of code and change as before, so you now have:

if ($ep_supported_mods['upc'] == true) { // UPC Code mod
$filelayout_sql .= 'p.products_upc as v_products_upc,';
}
if ($ep_supported_mods['family'] == true) { // Products Family mod
$filelayout_sql .= 'p.products_family as v_products_family,';
}

Now open YOUR-ADMIN-FOLDER/easypopulate_4.php and search for 'upc' again - around line 90

$ep_supported_mods['upc'] = ep_4_check_table_column(TABLE_PRODUCTS,'products_upc'); // upc = UPC Code, added by Chadd

Make a copy so you now have

$ep_supported_mods['upc'] = ep_4_check_table_column(TABLE_PRODUCTS,'products_upc'); // upc = UPC Code, added by Chadd
$ep_supported_mods['family'] = ep_4_check_table_column(TABLE_PRODUCTS,'products_family'); // Products Family

Finally open YOUR-ADMIN-FOLDER/easypopulate_4_import.php and search for 'upc' again, there are four edits to make here, here's what mine looks like with the 'family' fields added (the line numbers may be slightly out)

Line 26:
if ($ep_supported_mods['upc'] == true) { // UPC Code mod - chadd
$default_these[] = 'v_products_upc';
}
if ($ep_supported_mods['family'] == true) { // UPC Code mod - chadd
$default_these[] = 'v_products_family';
}

Line 150:
if ($ep_supported_mods['upc'] == true) { // UPC Code mod- chadd
$sql .= 'p.products_upc as v_products_upc,';
}
if ($ep_supported_mods['family'] == true) { // products_family
$sql .= 'p.products_family as v_products_family,';
}

Line 594:
if ($ep_supported_mods['upc'] == true) { // UPC Code mod
$query .= "products_upc = '".addslashes($v_products_upc)."',";
}
if ($ep_supported_mods['family'] == true) { // products_family
$query .= "products_family = '".addslashes($v_products_family)."',";
}

Line 660:
if ($ep_supported_mods['upc'] == true) { // UPC Code mod
$query .= "products_upc = '".addslashes($v_products_upc)."',";
}
if ($ep_supported_mods['family'] == true) { // family
$query .= "products_family = '".addslashes($v_products_family)."',";
}

Hope this helps - this should work for the fields in the products table, but it might need a bit of tweaking for the field you have in the description table (not sure myself as I haven't tried it)

Thanks,

this could make what I am trying to do a little easier. I have the same issue as several others and thought that ep4 could help fix them.

I have noticed that there are several posts on how to change the product type from 1 to 2 and I thought that by adding the fields

v_product_type
v_product_music_extras
v_record_artists
v_record_artists_info
v_record_company
v_record_company_info
v_music_genre

to ep4 would help in the creation of the new products before the old ones are deleted or just to add new products to Product - Music.

Don't know if I am on the right track or not, so I would appreciate your thoughts on this.

04 May 2012, 21:55
#322
chadderuski avatar

chadderuski

Totally Zenned

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

Re: EasyPopulate 4.0 Support Thread

awhfy99:

Thanks,

this could make what I am trying to do a little easier. I have the same issue as several others and thought that ep4 could help fix them.

I have noticed that there are several posts on how to change the product type from 1 to 2 and I thought that by adding the fields

v_product_type
v_product_music_extras
v_record_artists
v_record_artists_info
v_record_company
v_record_company_info
v_music_genre

to ep4 would help in the creation of the new products before the old ones are deleted or just to add new products to Product - Music.

Don't know if I am on the right track or not, so I would appreciate your thoughts on this.

If you hold off for just a little bit, I'll be posting soon with complete support for products type 2 for music (and also supporting the artists and record company info).

Initial testing looks good, but I need to comb through the code a bit more. Just give me to Sunday!

-chadd

05 May 2012, 21:02
#323
awhfy99 avatar

awhfy99

Zen Follower

Join Date:
Feb 2007
Location:
Burleson. Texas
Posts:
196
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

chadderuski:

If you hold off for just a little bit, I'll be posting soon with complete support for products type 2 for music (and also supporting the artists and record company info).

Initial testing looks good, but I need to comb through the code a bit more. Just give me to Sunday!

-chadd

I will do.

Looks like I posted the fields before I throughly checked the db structure, which I'm sure that you noticed!

Thanks for not exposing my oversight!

06 May 2012, 12:31
#324
nlinksolution avatar

nlinksolution

New Zenner

Join Date:
Sep 2010
Posts:
32
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Hi,

I have issue with inserting subcategories.

I have added subcategories in .csv file but however its not working.

Here is the .csv attached.

Can you tell me what is the issue?

08 May 2012, 15:53
#325
chadderuski avatar

chadderuski

Totally Zenned

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

Re: EasyPopulate 4.0 Support Thread

nlinksolution:

Hi,

I have issue with inserting subcategories.

I have added subcategories in .csv file but however its not working.

Here is the .csv attached.

Can you tell me what is the issue?

Hi,

You should read the first post over again carefully. One of the main changed from 1.2.5.4 to 4.0 is the category handling.

Your top level category, and subcategories are now concatenated under v_categories_name_1 like this:

Skincare^Body Care

v_categories_name_2 would refer to the second installed LANGUAGE, not a sub-category as in 1.2.5.4. This allow people to actually populate a multi-lingual store and have the category names language appropriate.

Hope this helps!

14 May 2012, 17:24
#326
andihpi avatar

andihpi

New Zenner

Join Date:
Apr 2012
Posts:
11
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

I have gotten all my languages to work using open office. Thank you so much.

Now my question is , I have 500,000 products in four languages. I have learned that I can break it into 50,000 items at a time and upload via http, and then have EP break the file and run each one of those. Is there any easier way to upload?

14 May 2012, 17:31
#327
chadderuski avatar

chadderuski

Totally Zenned

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

Re: EasyPopulate 4.0 Support Thread

andiHPI:

I have gotten all my languages to work using open office. Thank you so much.

Now my question is , I have 500,000 products in four languages. I have learned that I can break it into 50,000 items at a time and upload via http, and then have EP break the file and run each one of those. Is there any easier way to upload?

Hi!

What you can do is upload your main file of 500,000 products, and then use the Split function to break into 50,000 record chunks. Just be sure to check your Configuration->Easy Populate 4 settings so that "Split on Number of Records" is set to 50,000.

You will also want to set "Verbose Feedback" to false to save on memory and speed up the import. You will still get warnings and error displayed on the screen.

What four languages are you using?

-chadd

14 May 2012, 17:43
#328
andihpi avatar

andihpi

New Zenner

Join Date:
Apr 2012
Posts:
11
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

The Http upload will only allow 32 MB files, the 50,000 item csv files are 29 - 30 mb. That is my big question - Can I ftp the file then select it for upload?

I have Russian, French, Spanish and English.

14 May 2012, 18:58
#329
jund avatar

jund

Zen Follower

Join Date:
Sep 2006
Location:
Ruckersville, VA, USA
Posts:
276
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

How do I uninstall Easy Populate. I clicked on the un-install link. It gave me the following message. "Easy Populate Configuration Missing. Please install your configuration by clicking here
I do not know what it did - but it did not uninstall, reinstall, or change anything.

Thank you,
jund (John Underwood)

14 May 2012, 20:16
#330
chadderuski avatar

chadderuski

Totally Zenned

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

Re: EasyPopulate 4.0 Support Thread

andiHPI:

The Http upload will only allow 32 MB files, the 50,000 item csv files are 29 - 30 mb. That is my big question - Can I ftp the file then select it for upload?

I have Russian, French, Spanish and English.

You can first use an FTP program to put your files on site, then they will show up on your EP4 page. To import, just click the Import link next to that file name.

You may want to try with just a few dozen records. Is your data pretty clean? Curly quotes and hex char (92) can cause some issues. You may want to set those to "basic" characters on the Config page.

Be sure to use Dr. Byte MySQL backup tool so you can roll back if you have issues.

-chadd

p.s. I would be interested in a sample set of your data for testing if you are will to share (only testing mind you!). Also, do have a language id=1 defined?

14 May 2012, 20:17
#331
chadderuski avatar

chadderuski

Totally Zenned

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

Re: EasyPopulate 4.0 Support Thread

jund:

How do I uninstall Easy Populate. I clicked on the un-install link. It gave me the following message. "Easy Populate Configuration Missing. Please install your configuration by clicking here
I do not know what it did - but it did not uninstall, reinstall, or change anything.

Thank you,
jund (John Underwood)

Hi John,

This is actually correct. It has un-installed the configuration variables from the database. Now you would need to remove all the files from your site using an FTP program. This is common with nearly all zencart plug-ins.

17 May 2012, 19:54
#332
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

chadderuski:

Hi,

You should read the first post over again carefully. One of the main changed from 1.2.5.4 to 4.0 is the category handling.

Your top level category, and subcategories are now concatenated under v_categories_name_1 like this:

Skincare^Body Care

v_categories_name_2 would refer to the second installed LANGUAGE, not a sub-category as in 1.2.5.4. This allow people to actually populate a multi-lingual store and have the category names language appropriate.

Hope this helps!

Just to clarify, to use this mod to populate my website, I will have to edit the v_categories_name_1 and add the full subcategory path for each and every product?

18 May 2012, 01:45
#333
chadderuski avatar

chadderuski

Totally Zenned

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

Re: EasyPopulate 4.0 Support Thread

Boggled:

Just to clarify, to use this mod to populate my website, I will have to edit the v_categories_name_1 and add the full subcategory path for each and every product?

Yes:

"Top Level^1st Sub Category^2nd Sub Category"

19 May 2012, 16:10
#334
darkmarauder avatar

darkmarauder

New Zenner

Join Date:
Feb 2010
Location:
Northants, England
Posts:
83
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Can anyone please tell me how to import products into a subcategory pls? Every time I use categories name 2 all I get is another root category.

19 May 2012, 16:29
#335
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Look at post #333 above yours.

sph
prommart com

19 May 2012, 20:04
#336
shopsfm avatar

shopsfm

New Zenner

Join Date:
Jan 2012
Location:
California
Posts:
36
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

easy populate 4.0
zen 1.5
mazdaproject.com
I Installed EP 4.0 on my site and was able to upload my spread sheet.
But I am having a problem downlading my product.

19 May 2012, 20:41
#337
chadderuski avatar

chadderuski

Totally Zenned

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

Re: EasyPopulate 4.0 Support Thread

shopsfm:

easy populate 4.0
zen 1.5
mazdaproject.com
I Installed EP 4.0 on my site and was able to upload my spread sheet.
But I am having a problem downlading my product.

Will need a bit more information ... after exporting a sheet, you will have a "Download" link. Depending on your browser/settings you may need to right-click the link and "save target" or "save link" to your local machine.

And then there is always ftp.

19 May 2012, 20:42
#338
darkmarauder avatar

darkmarauder

New Zenner

Join Date:
Feb 2010
Location:
Northants, England
Posts:
83
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

SPH:

Look at post #333 above yours.

sph
prommart com

I did as you said and did import the file using Category1^Category2 and it did import.
One question for people would be, does the name of a category have to be unique? The example being can there be a main category of the same name of category in a subcategory?

19 May 2012, 20:47
#339
chadderuski avatar

chadderuski

Totally Zenned

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

Re: EasyPopulate 4.0 Support Thread

darkmarauder:

I did as you said and did import the file using Category1^Category2 and it did import.
One question for people would be, does the name of a category have to be unique? The example being can there be a main category of the same name of category in a subcategory?

Category names do not have to be unique outside of their tree structure:

"Intel^Processors"
"AMD^Processors"

You have to different TOP level category names with the same (but different) sub-category.

NOTE: Category names are case sensitive: processors <> Processors and will produce two entries in your category tree.

20 May 2012, 17:42
#340
chadderuski avatar

chadderuski

Totally Zenned

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

Re: EasyPopulate 4.0 Support Thread

Announcement: Easy Populate 4.0.20 Beta Posted to Github

This new version adds many features and enhancements:

-Attributes are now "round-robin". You can import-export-import your attributes to add/update as needed.
File naming requirements: The basic import must begin with "Attrib-Basic-EP" and the detail with "Attrib-Detailed-EP".
I am still awaiting feedback on what common columns would be useful in the Basic import file. I do not want to duplicate the Detailed, but
I'm sure there are a number of fields that users would like here. Attributes import is now multilingual.

-Added 'products_priced_by_attribute' to FULL file to support attributes.
-Added Featured Products support
-Added Support for products type 2. You can now import all relevant info for music products (artist, record label, genre).
-Expanded handling of "curly quotes" characters and character 0x92

BUG FIX: When import a mixed file of updated and new products with only a select number of columns, the data from an updated product was being inserted into a new product.

Download here: https://github.com/chaddro/EasyPopulate-4.0

Looking forward to your feedback,
-chadd