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

EasyPopulate 4.0 Support Thread

Sticky

Views: 733,351

Results 881 to 900 of 3,671
4 Mar 2013, 10:52 PM
#881
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

EasyPopulate 4.0 Support Thread

And also following is the result from the upload.

Import Results
.
.
.
UPDATED! - Model: 50165 | 5 | Color | Pink |
.
.
.
Finished processing the the import file
Updated records: 13
New Imported records: 0
Errors Detected: 0
Warnings Detected:0
.
.
.

4 Mar 2013, 11:31 PM
#882
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

I think I found out where the problem started from.

After reading the "attribute_types.txt" in the mod, I realized I had changed the name of the csv file to "test.csv".
In the read me, it is stated that Basic Attribute Import file name must begin with "Attrib-Basic-EP" plus any other text you want

As soon as I changed the file name it updated the attribute.
NEW ATTRIBUTE! - Model: 50165, Option: Color, Values: Pink

Questions:

Was this the only thing I did wrong?

Does this rule apply to all other imports for EP4?

5 Mar 2013, 4:59 PM
#883
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

Kevin: You should be on the right track now. Some imports have file naming conventions because they act as switches to what the import script does.

This applies to category, attribute and pricing sheets. I have not yet put a restriction on the full sheet, but that may come...

6 Mar 2013, 2:13 PM
#884
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Thank you for all you are doing.

How hard is it to add yet another field such as UPC/ISBN, to the scheme of import and export of products in EP4?

A lot companies are using **UPC **along with their model number.

6 Mar 2013, 2:15 PM
#885
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Thank you for all you are doing.

How hard is it to add yet another field such as UPC/ISBN Product Fields to the scheme of import and export of products in EP4?

A lot of companies are using **UPC **along with their model number.

6 Mar 2013, 3:29 PM
#886
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

Kevin205:

Thank you for all you are doing.

How hard is it to add yet another field such as UPC/ISBN Product Fields to the scheme of import and export of products in EP4?

A lot of companies are using **UPC **along with their model number.

Agreed. Hopefully UPC will make it into core.

You can add a field "products_upc" to the products database via phpMyAdmin. Then use the User Defined Product Fields option under Configuration > Easy Populate 4. Just add the name of the field name with no quotes or spaces. You can add multiple name separated by a comma (no spaces):

products_upc,products_price_uom

-chadd

8 Mar 2013, 6:28 AM
#887
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

I can't figure out what I did wrong?

I exported the "Attrib-Detailed-EP2013Mar07" file and added one line of attribute information to the following fields. I was trying to add an attribute to an existing drop down option

v_products_attributes_id ( did not place any thing here. I figured SQL will generate the ID)
v_products_id (Placed the product ID 229, identical to the existing product ID)
v_products_model (Placed the model #, identical to the existing product #)
v_options_id (placed 8 for option id, matching the existing option id/name)
v_products_options_name (placed the the option name)
v_products_options_type (placed 0 for, thinking this is used for a drop down)
v_options_values_id (added 1 to the highest number of 16 and wrote 17)
v_products_options_values_name (added a new name)
v_options_values_price (added the price)
v_options_values_price v_price_prefix (added a +)
the rest of the fields were unchanged.

The reason why you see all the below error message and not just once, is because I believe I re imported "Attrib-Detailed-EP2013Mar07" about 4 times. I did not place any IDs as I figured program will assign appropriate ids.

MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND 
				products_id =  AND 
				options_id = 8 AND 
				options_values_id = 
		' at line 3
When executing:
SELECT * FROM zen_products_attributes 
				WHERE (
				products_attributes_id =  AND 
				products_id =  AND 
				options_id = 8 AND 
				options_values_id = 
				) LIMIT 1
MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND 
				products_id = 229 AND 
				options_id = 8 AND 
				options_values_id = ' at line 3
When executing:
SELECT * FROM zen_products_attributes 
				WHERE (
				products_attributes_id =  AND 
				products_id = 229 AND 
				options_id = 8 AND 
				options_values_id = 
				) LIMIT 1
MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND 
				products_id = 229 AND 
				options_id = 8 AND 
				options_values_id = ' at line 3
When executing:
SELECT * FROM zen_products_attributes 
				WHERE (
				products_attributes_id =  AND 
				products_id = 229 AND 
				options_id = 8 AND 
				options_values_id = 17
				) LIMIT 1
8 Mar 2013, 2:13 PM
#888
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Sorry for re-post on the same issue. I had these questions and forgot to ask. :D

Can "Attrib-Detailed-EP***.csv" be used the same way as "Attrib-Basic-EP***.csv"?

If yes, would EP4, Zen or SQL comes up with the ID values for the following fields or you have to manually keep adding IDs in "Attrib-Detailed-EP***.csv" before the import?

v_products_attributes_id
v_products_id
v_options_values_id

Also when you get an error as above, does that mean the database tables are corrupted and they have to be reverted back to the backup set?

I know to many questions. Sorry for that. Thanks.

8 Mar 2013, 4:45 PM
#889
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Sorry here is another hint.

Attachment 12102

8 Mar 2013, 4:57 PM
#890
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

Kevin,

The BASIC import is for ADDING attributes. The DETAIL import only modifies EXISTING attribute information.

You cannot use the DETAILED report to ADD more fields. Note that the first couple columns are actual indexes into the databases: EP finds the indexed value and updates it.

Used properly the BASIC and DETAILED sheets will let you build extremely complex attribute layout, and allow you to edit everything just like the admin.

-chadd

8 Mar 2013, 5:38 PM
#891
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Getting errors as such, is the database damaged? Do you think I should go back to previous backup or not necessary?

Thank you.

8 Mar 2013, 5:51 PM
#892
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

Kevin205:

Getting errors as such, is the database damaged? Do you think I should go back to previous backup or not necessary?

Thank you.

You should be using Dr. Bytes MySQL Backup tool any time you are working with EP. This ensures that your can easily roll back your databases.

The databases would not be damaged, but I cannot determine what you did. Looks like I'll have to add some additional error handling to prevent these kind of user errors.

-chadd

8 Mar 2013, 5:53 PM
#893
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

I always backup!

Got it thanks. Chad

8 Mar 2013, 8:03 PM
#894
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Attachment 12106

Chad - Why is the value of v_products_options_type field is different in the Attrib-Detailed-EP than Attrib-Basic-EP CSV?

I have used Radio buttons for Size and Drop down for Material.

The v_products_options_type in Attrib-Detailed-EP for product model 53 is 2 for Size and 0 for Material, but in Attrib-Basic-EP the value for Size and Material are both set to 2.

Shouldn’t it be 2 (Radio Button) for Size and 0 (Drop Down) for Material in Attrib-Basic-EP also?

I would appreciate it if you would explain the difference. Thanks.

8 Mar 2013, 9:21 PM
#895
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

Kevin205:

Attachment 12106

Chad - Why is the value of v_products_options_type field is different in the Attrib-Detailed-EP than Attrib-Basic-EP CSV?

I have used Radio buttons for Size and Drop down for Material.

The v_products_options_type in Attrib-Detailed-EP for product model 53 is 2 for Size and 0 for Material, but in Attrib-Basic-EP the value for Size and Material are both set to 2.

Shouldn’t it be 2 (Radio Button) for Size and 0 (Drop Down) for Material in Attrib-Basic-EP also?

I would appreciate it if you would explain the difference. Thanks.

I just created a test using your same BASIC data, and when I down load the DETAILED it is correct: v_products_options_type match.

Are you using the products_options_name "Material" more than once with DIFFERENT products_options_type (drop box vs radio button)?

Check your options names/values through the admin...

9 Mar 2013, 12:18 AM
#896
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

I thought I had messed up again, so I went ahead and installed a fresh install of 1.5.1 with clean database. The only plug-in installed is EP4 (Easy Populate 4.0.22 - Beta 6-10-2012).

I then created two products:
Prod 1
Shirt A (Model: SHIRT_200), with 1 attributes:
Size: Small, Medium, Large
Prod 2
Shirt B (Model: SHIRT_100), with 2 attributes:
Size: Small, Medium, Large
Color: Blue, Red, Green

As you can see when I exported the "Attrib-Basic-EP" and "Attrib-Detailed-EP", I am still getting “0” in v_products_options_type in the Attrib-Basic-EP (on record#3 of spreadsheet).

Shouldn’t that value be a “2” for Radio Button? Same result as before. Am I missing something Here?

Attachment 12107

9 Mar 2013, 12:36 AM
#897
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

Kevin205:

I thought I had messed up again, so I went ahead and installed a fresh install of 1.5.1 with clean database. The only plug-in installed is EP4 (Easy Populate 4.0.22 - Beta 6-10-2012).

I then created two products:
Prod 1
Shirt A (Model: SHIRT_200), with 1 attributes:
Size: Small, Medium, Large
Prod 2
Shirt B (Model: SHIRT_100), with 2 attributes:
Size: Small, Medium, Large
Color: Blue, Red, Green

As you can see when I exported the "Attrib-Basic-EP" and "Attrib-Detailed-EP", I am still getting “0” in v_products_options_type in the Attrib-Basic-EP (on record#3 of spreadsheet).

Shouldn’t that value be a “2” for Radio Button? Same result as before. Am I missing something Here?

Attachment 12107

PM Sent...

9 Mar 2013, 5:38 AM
#898
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

Congratulations Kevin, you found a bug in the Basic Attribute EXPORT (not import).

A same product with different types of options was not exporting correctly.

Thank you for your diligence!

-chadd

9 Mar 2013, 8:04 AM
#899
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Chad – Please do not congratulate me as I do not deserve any. You deserve all the congratulations and recognition yourself with all of your hard work helping others.

Thank you again for an amazing module.

9 Mar 2013, 8:22 AM
#900
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Here is the result. Perfect.

Attachment 12109

I will test with other options tomorrow and keep you posted. Thanks.