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

EasyPopulate 4.0 Support Thread

Sticky

Views: 733,151

Results 1,421 to 1,440 of 3,671
23 Apr 2014, 7:28 PM
#1421
icecold avatar

icecold

Zen Follower

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

EasyPopulate 4.0 Support Thread

This a sample csv I just exported from the site

v_products_price v_products_msrp
35 35
0 0
25 25
99 99
38 38
65 65
20 20
45 45
45 45

Those are the fields I am getting but for some reason my imported file didn't make any differences between the MSRP and the other price, I am having another problem, as no prices are displayed ...
please take a look at my demo store

http://www.theoutletseason.com/demostore

You will notice no prices are displayed!
I don't know if this has to do with the way I entered them into the csv and then imported them into the site, or something else ...

23 Apr 2014, 8:17 PM
#1422
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

icecold:

This a sample csv I just exported from the site

Those are the fields I am getting but for some reason my imported file didn't make any differences between the MSRP and the other price, I am having another problem, as no prices are displayed ...
please take a look at my demo store

http://www.theoutletseason.com/demostore

> 
> You will notice no prices are displayed!
> I don't know if this has to do with the way I entered them into the csv and then imported them into the site, or something else ...

So, couple of questions, did the msrp work before trying to use EP4 to update it? If you either add a new product or modify an existing one, will the price appear?

Currently when viewing the source code of a page, the following is displayed:
<!--bof Product Price block --> <h2 id="productPrices" class="productGeneral"> </h2> <!--eof Product Price block --> ```

This indicates that nothing is being generated between the h2 tags. Perhaps a coding issue from installing the mod? Any error logs?

After adding a product to the cart, the cart does show a price. I was trying to look to see what, if any settings could have been changed to hide the price even on the product page, but haven't been able to validate that anyone (or combination of settings) would hide the price on all pages except the cart. There's options in the product listing. And I recall some under product type also, but...

At the moment, and without further pre_EP4 install/update information, couldn't tell you what went wrong, but generally speaking it seems that this really isn't an EP4 issue anymore at the moment. I say this because at least the one field (and there may be others) does export and am guessing will import as well, but that either bad data is being provided to the database or the module installation has an error. If it is a case tht this is not an EP4 specific issue, may I recommend posting to the thread about MSRP or starting a new thread to address this issue. Again, so far it appears that MSRP doesn't work based on the information provided.

24 Apr 2014, 2:44 AM
#1423
icecold avatar

icecold

Zen Follower

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

Re: EasyPopulate 4.0 Support Thread

That's weird because there are no error logs and I have the same conclusion as you, that's an empty h2 tag, and there's nothing there ...
As i had a pretty much test installation, I did copy the core files from the mod ... however I did fix one by myself because there was a function without an ending } ...

Other than there were no modifications to the core files ...
nothing except for the template to prevent both right and left columns from displaying and a few changes in my mega menus to add more columns ... but core files supposed to be untouched so I felt safe just replacing them ...

However I think there might be something wrong with that module, although I couldn't see anyone complaining about what I found ...

7 May 2014, 4:40 AM
#1424
vix332 avatar

vix332

New Zenner

Join Date:
Apr 2011
Posts:
27
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Hi,
I am struggling with how to use easy populate and wondered if there are some online tutorials or a wiki like there was for the older versions of Easy Populate?
Thanks
Vix

7 May 2014, 9:56 AM
#1425
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

Vix332:

Hi,
I am struggling with how to use easy populate and wondered if there are some online tutorials or a wiki like there was for the older versions of Easy Populate?
Thanks
Vix

There's a lot inthis thread if you work your way backwards from here. Also, from what I understand the "old" wiki's/FAQ's make reference to "instructions" for this version, though they are not highly detailed. What seems to be the issue?

7 May 2014, 6:35 PM
#1426
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

Vix332:

Hi,
I am struggling with how to use easy populate and wondered if there are some online tutorials or a wiki like there was for the older versions of Easy Populate?
Thanks
Vix

mc12345678:

There's a lot inthis thread if you work your way backwards from here. Also, from what I understand the "old" wiki's/FAQ's make reference to "instructions" for this version, though they are not highly detailed. What seems to be the issue?

Linuxguy2 had posted the following in this thread related to the instructions:
http://www.zen-cart.com/showthread.php?190417-EasyPopulate-4-0-Support-Thread&p=1236860#post1236860

9 May 2014, 2:33 AM
#1427
bikerstuff avatar

bikerstuff

New Zenner

Join Date:
Apr 2014
Posts:
80
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

I've read the Wiki but not sure about some things.

If I already have the products in my store and I just want to update prices and stock levels but not change anything else, what all fields are required to be used?

Item #, Price, quantity, if I just import those three fields, since the item number already exists on the site, will they be found and updated, but leave all other info as is?

Some-one mentioned I think that if the description field was empty it may delete the description from the item, what about if that field just does not exist?

I read that I can Delete items in bulk by using 9 in the status field. So 0 is inactive, 1 is active, and 9 will delete?
Is that correct?

What if I do not use a status field in the import? Will all the items remain as I have them already set, and ZC just set the status based on stock levels?

I have about 2,000 items available, but only want to deal with about 500 for now. The problem I have though is when I get a CVS from supplier I can choose what fields it contains, but ALL products will be included.

I'm trying to figure the best way to deal with with only 500 of 2,000 items.

9 May 2014, 4:53 AM
#1428
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

Bikerstuff:

I've read the Wiki but not sure about some things.

If I already have the products in my store and I just want to update prices and stock levels but not change anything else, what all fields are required to be used?

Item #, Price, quantity, if I just import those three fields, since the item number already exists on the site, will they be found and updated, but leave all other info as is?

Some-one mentioned I think that if the description field was empty it may delete the description from the item, what about if that field just does not exist?

I read that I can Delete items in bulk by using 9 in the status field. So 0 is inactive, 1 is active, and 9 will delete?
Is that correct?

What if I do not use a status field in the import? Will all the items remain as I have them already set, and ZC just set the status based on stock levels?

I have about 2,000 items available, but only want to deal with about 500 for now. The problem I have though is when I get a CVS from supplier I can choose what fields it contains, but ALL products will be included.

I'm trying to figure the best way to deal with with only 500 of 2,000 items.

First things first, EP4 uses the model # (not the product_id) to associate a record in the file with a record in the database. So that is one of the "mandatory" fields to be included.

Regarding the description, well the code is written so that regardless of the presence of the description field in the csv file an array field is established and then when the file is imported, if data is available to be imported to that field then it is updated to that data, if the data is not available then it is set to null. This is something that is likely to be corrected in the next release.

Next to discuss, keeping a field's header (column title) but emptying the contents below it is equivalent typically to importing a null or zero or blank entry. If the desire is not to import the contents of a column, then typically the column in it's entirety is to be deleted. (Note again, the description field is currently one that should stay unless it is desired to clear the description field of every imported product.)

I really wish I could tell you from here if/what the other required fields are, but basically there are those to match the entry with the database and then there is the fact that EP4 was coded to always consider the description as a part of the import (of the full product csv file). It appears that there was not a consideration that the description field would not be included, which generally speaking is a reasonable expectation.

Btw, the previous occurrence of the description issue was one where the description field was completely removed not left empty, this issue was then confirmed through a code review.

For columns that are not mandatory and are omitted the data of the field will remain as was. Regarding changing the quantity of an item and it's relationship to the active status, it is known that simply increasing the available quantity does not activate the product. So if the desire is to simultaneously increase and reactivate the product then the status must also be included.

If I understand correctly, your supplier will provide a file with approx. 2000 items, but you only want to have your store display approx 500 of those items/be updated to reflect the data of those items. Basically if you leave off the status column (provided that at some point/somehow "deleted" products are in some way inactivated).

The questions asked above, I would agree are not likely in the wiki, and in a way not likely to totally be addressed in future primary documentation. They are good questions, but in my opinion are more about day-to-day operation than limitations, capabilities, etc...

Ideally, as in so many other situations, I would recommend that you find the method of update that is quickest for you by use of a test store, backing up the data, attempt the import of your data file and verify that the operation is successful, if not then restore, make the desired changes to the import file and try again. :) once the right combination of items is identified, then try to make it so that the process can be easily/quickly repeated. :) hope that helps a little.

9 May 2014, 3:13 PM
#1429
bikerstuff avatar

bikerstuff

New Zenner

Join Date:
Apr 2014
Posts:
80
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Thank you. Yes that does help allot!

I have a local test store set up now so that I can experiment.

I think I may have thought of a way to do what I want then, with your help Thanks!.

If I import all items to a category called "Everything" and that full import has status set to 0 then all items would be updated but hidden (I think)
Then if I import a second CVS of just the items I want to sell, status 1 for these, and include the description so it's not deleted, I would make active for sale only the items I want and they should be updated. I would of course need some fields like category in this second CVS so that the items are linked from the "Everything" category to the ones they belong in.

Does that sound about right and any bad side effects I may not be knowing about? Like to the database or anything?

Oh, I am using Easy Populate 4 and Zencart 1.5.1

I will go experiment some more again now.

25 May 2014, 2:22 AM
#1430
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

Hey everyone, I know that there have been a few that have had problems using EP4 when it comes to not wanting to deal with the product description. So, I finally sat down and worked through the code myself and here is a solution that works with the current version (v4.022) available from the first post of this thread, and soon to be available in the fork of the code that I have made. In the mean time, if you modify the import file that is located in the admin directory:

ROOT_OF_STORE/admin/easypopulate_4_import.php

Find the code that includes:

            // BEGIN: Products Descriptions
...
...
...
            } // END: Products Descriptions End 
            // BEGIN: Products Descriptions
            // the following is common in both the updating an existing product and creating a new product
            if (isset($v_products_name)) {
                foreach ($v_products_name as $key => $name) {
                    $sql = "SELECT * FROM " . TABLE_PRODUCTS_DESCRIPTION . " WHERE
                        products_id = " . $v_products_id . " AND
                        language_id = " . $key;
                    $result = ep_4_query($sql);

                    if (mysql_num_rows($result) == 0) {
                        $sql = "INSERT INTO " . TABLE_PRODUCTS_DESCRIPTION . " (
                            products_id,
                            language_id,
                            products_name, " .
                            ((isset($filelayout['v_products_description_' . $key]) || ( isset($filelayout['v_products_description_' . $key]) && $product_is_new) ) ? " products_description," : "");
                        if ($ep_supported_mods['psd'] == true) {
                            $sql .= " products_short_desc,";
                        }
                        $sql .= " products_url )
                            VALUES (
                            '" . $v_products_id . "',
                            " . $key . ",
                            '" . addslashes($name) . "', " .
                            ((isset($filelayout['v_products_description_' . $key]) || ( isset($filelayout['v_products_description_' . $key]) && $product_is_new) ) ? "'" . addslashes($v_products_description[$key]) . "'," : "");
                        if ($ep_supported_mods['psd'] == true) {
                            $sql .= "'" . addslashes($v_products_short_desc[$key]) . "',";
                        }
                        $sql .= "'" . addslashes($v_products_url[$key]) . "')";
                        $result = ep_4_query($sql);
                    } else { // already in the description, update it
                        $sql = "UPDATE ".TABLE_PRODUCTS_DESCRIPTION." SET
       products_name        ='".addslashes($name)."', " .
                            ((isset($filelayout['v_products_description_' . $key]) || ( isset($filelayout['v_products_description_' . $key]) && $product_is_new) ) ? "products_description ='" . addslashes($v_products_description[$key]) . "'," : "");
                        if ($ep_supported_mods['psd'] == true) {
                            $sql .= " products_short_desc = '" . addslashes($v_products_short_desc[$key]) . "',";
                        }
                        $sql .= " products_url='" . addslashes($v_products_url[$key]) . "'
       WHERE products_id = '" . $v_products_id . "' AND language_id = '" . $key . "'";
                        $result = ep_4_query($sql);
                    }
                }
            } // END: Products Descriptions End 

I tested this with an update of a single record. Perhaps some confirmation of functionality?
The product_name is still an attribute that should remain. This targets the import of files that do not have the following prefixes: categorymeta-ep nor attrib-. If the file(s) have that prefix then the above code will not be processed.

25 May 2014, 9:03 AM
#1431
bikerstuff avatar

bikerstuff

New Zenner

Join Date:
Apr 2014
Posts:
80
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

THANKS!

I may not be able to work on my test store for a couple days, but I will try that soon as I can!

1 Jun 2014, 7:57 PM
#1432
propster avatar

propster

New Zenner

Join Date:
Feb 2011
Location:
West Yorkshire
Posts:
14
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Hi, I am using this EP4 mod ok but would like to add an extra column in the detailed stock by attributes data csv file down load.This would allow me to easily cross reference the output to a stock quantity file supplied by a manufacturer using their stock codes which are slightly different to the model numbers I use on my site. I would like a new column showing the manufacturers product code. This would be tied to the stock i.d. for each product attribute. I am currently manually creating the table by adding the manufacturers code but this is a long process and I would like to automate this if possible.

1 Jun 2014, 8:37 PM
#1433
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

propster:

Hi, I am using this EP4 mod ok but would like to add an extra column in the detailed stock by attributes data csv file down load.This would allow me to easily cross reference the output to a stock quantity file supplied by a manufacturer using their stock codes which are slightly different to the model numbers I use on my site. I would like a new column showing the manufacturers product code. This would be tied to the stock i.d. for each product attribute. I am currently manually creating the table by adding the manufacturers code but this is a long process and I would like to automate this if possible.
Sort of have lots of questions related to this query; however,am I correct in assuming that if the currently preffered SBA (that has an additional field) was being used then the issue would be resolved?

That would allow storing the identifier that is described so that updates would be easier, but it would not resolve new items per se as the data would not be present to export until it was imported at least once. That also assumes that the additional field added by that version of SBA isn't used for other purposes of SBA. (Haven't identified how that field is used yet, just know that it exists.)

Otherwise the question would be how would one create the data of that field on export and what if anything is stored back into the database associated with that field.

Otherwise some custom programming to do all that would be needed. But first clarification would help from start to "finish".

1 Jun 2014, 10:47 PM
#1434
propster avatar

propster

New Zenner

Join Date:
Feb 2011
Location:
West Yorkshire
Posts:
14
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

mc12345678:

Sort of have lots of questions related to this query; however,am I correct in assuming that if the currently preffered SBA (that has an additional field) was being used then the issue would be resolved?

That would allow storing the identifier that is described so that updates would be easier, but it would not resolve new items per se as the data would not be present to export until it was imported at least once. That also assumes that the additional field added by that version of SBA isn't used for other purposes of SBA. (Haven't identified how that field is used yet, just know that it exists.)

Otherwise the question would be how would one create the data of that field on export and what if anything is stored back into the database associated with that field.

Otherwise some custom programming to do all that would be needed. But first clarification would help from start to "finish".

Yes the addition of an extra field would be a great help. I am trying to update quantities from a supplied csv file, but the fields in the supplied file do not match the Detailed Stock By Attribute Data file exported by EP4. At the moment I am using a separate look up file to cross reference the required info then reimporting the generated output file. To do this I have to manually add a column to the Detailed Stock by attribute data file that I download to give the manufacturers stock code. This is used in the look up table to find the stock quantities. Once the stock quantity is updated in the look up table I remove the added column and upload the file to update stock quantities in my store.
I realise I would have to input the information for all existing products but for any new products it would just be added at the same time as all the new product information.

17 Jun 2014, 5:14 PM
#1435
triplex avatar

triplex

New Zenner

Join Date:
Jun 2014
Posts:
6
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Can anyone point me in the right direction please? I've trawled the support thread and can't find the answer.

I need to setup a field/column header so I can enter an International Article Number (EAN) next to the products - there are around 4000 products in my site.

I have managed to match up most of the csv fields and cut and pasted them in, but how do I create the extrafields/header columns for the other information for each product?

Thanks

Robert

17 Jun 2014, 5:22 PM
#1436
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

triplex:

Can anyone point me in the right direction please? I've trawled the support thread and can't find the answer.

I need to setup a field/column header so I can enter an International Article Number (EAN) next to the products - there are around 4000 products in my site.

I have managed to match up most of the csv fields and cut and pasted them in, but how do I create the extrafields/header columns for the other information for each product?

Thanks

Robert

Start a little further back on the issue. Does the field exist in your store's database? Are you having to create it now in order to hold this data you are wanting to capture? There are a few plugins that will create extra fields associated with each product that can then be exported/imported by EP4. EP4 handles existing tables and the data in them.

If the field(s) exist in your database, then you may be able to use the configuration area on the admin panel to add the additional field(s) as part of the export.

Adding fields though to the database isn't typically a one place add type situation, there are several files involved, not to say it's difficult, but need to consider all methods of use and where the field(s) need to be included.

17 Jun 2014, 7:00 PM
#1437
stiggybaby avatar

stiggybaby

New Zenner

Join Date:
Apr 2011
Posts:
91
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

I see that the EP4 download link is at the beginning of this thread, and there is a different easy populate plugin download in the plugins area.

Is there anything that explains the difference between these 2 EP plugins? Or which is better, for example, for adding custom fields, or product files with over 5000 products, etc.?

17 Jun 2014, 7:25 PM
#1438
triplex avatar

triplex

New Zenner

Join Date:
Jun 2014
Posts:
6
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

mc12345678:

Start a little further back on the issue. Does the field exist in your store's database? Are you having to create it now in order to hold this data you are wanting to capture? There are a few plugins that will create extra fields associated with each product that can then be exported/imported by EP4. EP4 handles existing tables and the data in them.

If the field(s) exist in your database, then you may be able to use the configuration area on the admin panel to add the additional field(s) as part of the export.

Adding fields though to the database isn't typically a one place add type situation, there are several files involved, not to say it's difficult, but need to consider all methods of use and where the field(s) need to be included.

Thanks. What I am trying to do is import a field from a csv from my product supplier, that presently doesn't match any of the the existing fields provided in the EP4 files. Therefore, I (think I) need to create a field in a header/column of a csv that I can copy and paste in 4000 EAN entries and they will show next to the product details on the website when imported.

I can't find any defined advice about this and having looked around for about 10 hours today, I am hoping someone can give me a clue.

I know very little about SQL/databases etc so if anyone knows a dummies guide anywhere to using EP4 with Zencart that tells you how to create new csv's for data supplied from a product supplier that can be imported into EP4 and will show in the right place when a customer looks at a product, I would appreciate some help!

As I said originally, half of the fields show because I can match them up with the existing EP4 provided csv's.

How do I get the rest of the info to show in zencart if there are not comparative fields to paste the information into?

Thanks

Robert

17 Jun 2014, 7:50 PM
#1439
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

stiggybaby:

I see that the EP4 download link is at the beginning of this thread, and there is a different easy populate plugin download in the plugins area.

Is there anything that explains the difference between these 2 EP plugins? Or which is better, for example, for adding custom fields, or product files with over 5000 products, etc.?

I haven't tried any other EP program, at least mostly because this one I found to have all of the attributes/aspects needed, and at the time I started using it I think it was the only one that was compatible with zC1.5.x.

I have seen a different EP program in operation on a 1.5.1 site, but if anything what I saw was that there were less options/features/information. This version does allow splitting files to minimize the workload on the system during import (large number of records), there are some customization options to pull out fields that were not considered necessary (or perhaps are new) when developing the central code. There are also some aspects of data conversion that are incorporated that I personally haven't really focused on, but appear useful for the right purpose.

Basically the history as I understand it is that once there was EP, then there were children all wanting to offer some new functionality or something. Even now I have started what is called a fork off of this version to add some functionality. I need to properly request that the functionality be incorporated, but in no way do I think that the changes I've made have resulted in a "new" version of the program. Anyways, this version hasn't been properly packaged yet for submission, and the latest author hasbeen working on a type of rewrite for it (as well as developing/finishing some instructions). That said, a version I have seen includes an interface with froogle. That's not incorporated in this version, but probably could be added in with little difficulty (another thing that is ideal about this particular plugin, the organization allows relatively easy modification.)

But those are just my thoughts and experience. I think this version has been rewritten to bring control more into the store owner's hands which can be good (and bad :P).

17 Jun 2014, 10:57 PM
#1440
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

triplex:

Thanks. What I am trying to do is import a field from a csv from my product supplier, that presently doesn't match any of the the existing fields provided in the EP4 files. Therefore, I (think I) need to create a field in a header/column of a csv that I can copy and paste in 4000 EAN entries and they will show next to the product details on the website when imported.

I can't find any defined advice about this and having looked around for about 10 hours today, I am hoping someone can give me a clue.

I know very little about SQL/databases etc so if anyone knows a dummies guide anywhere to using EP4 with Zencart that tells you how to create new csv's for data supplied from a product supplier that can be imported into EP4 and will show in the right place when a customer looks at a product, I would appreciate some help!

As I said originally, half of the fields show because I can match them up with the existing EP4 provided csv's.

How do I get the rest of the info to show in zencart if there are not comparative fields to paste the information into?

Thanks

Robert

So, first a product field needs to exist to receive the data associated with your content. One solution is to use a plugin that Numinix created. I can't say that I know all the ins and outs of it's capabilities, but hopefully. The documentation would lead to indicating that the new fields are added to the products table. See: http://www.zen-cart.com/downloads.php?do=file&id=1495

Then once the field(s) are known to exist and you know. The field name(s), on the configuration menu for EP4 there is a location to fill in additional fields for export. Simply type in the name of the field(s) separated by a comma if more than one. An example would be product_status. This will result in the file containing v_product_status. Then on import the same field name would be necessary (v_product_status) and it should be imported to the database. The important part on this end is that the data type matches what you want it to contain(text, numbers, etc...y

As for displaying the information, that would require modifications to your template files as applicable to show the desired field, with possibly a change to other files to retrieve the data.

Technically this all is custom coding, and really should be taken to a new thread. There is also information in the FAQ about adding fields to a table and product types, etc. There may also be a product type out there that will hold the type of information you want, but then EP may need some customization to obtain and import that new data.

Hope that helps a little, just realize that it is a large change to the database and default functionality and not a specific EP4 issue.