Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / Easier way to attach images to 10,000 products?

Easier way to attach images to 10,000 products?

Locked

Started by justin3085 on 27 Jan 2010, 1:06 PM · Views: 1,517

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
27 Jan 2010, 1:06 PM
#1
justin3085 avatar

justin3085

New Zenner

Join Date:
Jan 2010
Location:
New Jersey
Posts:
22
Plugin Contributions:
0

Post #1 by justin3085

I have searched the past few days on a way to attach images to my products. I have a 10000 product catalog that I uploaded with no problem. Now, I need the images attached to the products. Each image is named with the respective product number both in a large and small size. All the images have been uploaded via FTP to the images folder

I use Zen Cart Store Manager from Magnetic One I also have EP and IH2.

Everything I come across is instructions on attaching multiple images to 1 product which I don't care about.

How in the world can I easily attach 10000 images to 10000 products without clicking on each item and attaching the image manually.

:cry:

-help!

-Justin
http://WWW.CJTSUPPLY.COM
"Tight lines"

27 Jan 2010, 1:10 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #2 by schoolboy

fastest way is via Easy Populate.

You say you have installed easy populate... What version?

When you tell me what version of EP, I might be able to show you a EP technique that will "activate" your 10,000 images in about 6 minutes...

20 years a Zencart User

27 Jan 2010, 1:11 PM
#3
justin3085 avatar

justin3085

New Zenner

Join Date:
Jan 2010
Location:
New Jersey
Posts:
22
Plugin Contributions:
0

Post #3 by justin3085

Easy Populate 1.2.5.4

Thanks :)

-Justin
http://WWW.CJTSUPPLY.COM
"Tight lines"

27 Jan 2010, 1:18 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #4 by schoolboy

If you do a "dump" via EP of your current product data, will this have the product model numbers in it?

You say that ALL images are named according to the product code (model number).

Please tell me then...

If product code = 56789

Small Image Name = ???

Large Image Name = ???

20 years a Zencart User

27 Jan 2010, 1:21 PM
#5
justin3085 avatar

justin3085

New Zenner

Join Date:
Jan 2010
Location:
New Jersey
Posts:
22
Plugin Contributions:
0

Post #5 by justin3085

If product code = 56789

Small Image Name = 56789SM.gif

Large Image Name = 56789.gif

-Justin
http://WWW.CJTSUPPLY.COM
"Tight lines"

27 Jan 2010, 1:25 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #6 by schoolboy

You don't need to worry about the small images.

Now, get EP to "export" your zencart product data to the temp folder...

Use FTP to collect the dumped file to bring it across to your local machine.

Make a COPY of the TXT file. (save as a different name)

Open the COPY in MS excel.

Delete ALL but the first 50 lines.

Save that copy

ZIP the copy up

Attach it to your next post so I can download it and take a look...

20 years a Zencart User

27 Jan 2010, 2:01 PM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #8 by schoolboy

OK, I opened it, but I see a few things...

  1. This does not look like EP 1.2.5.4 to me...

The column headers should be
v_products_model
v_products_image
v_products_name
v_products_description

Did you re-name these headers? or are you using a later version of EP?

  1. You have not specified any CATEGORIES... all your products are in the TOP level...

This will have serious consequences later. And besides... EP needs category depth in order to work.

Have you created Product Categories? If so, why are the products not located in these categories?

No point in proceeding until I know if you have category depth...

20 years a Zencart User

27 Jan 2010, 2:03 PM
#9
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #9 by schoolboy

... or is this a file that MagneticOne generated?

I think so...

Please use EP

20 years a Zencart User

27 Jan 2010, 2:05 PM
#10
justin3085 avatar

justin3085

New Zenner

Join Date:
Jan 2010
Location:
New Jersey
Posts:
22
Plugin Contributions:
0

Post #10 by justin3085

That was magnetic one. SOrry it was faster at the moment. Had a screaming baby lol.

Ok this one is the EP one.. Hopefully I did this one correctly.

-Justin
http://WWW.CJTSUPPLY.COM
"Tight lines"

27 Jan 2010, 2:09 PM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #11 by schoolboy

Hey... kids... I know the story... :D

YES... that's the file I need...

Back in a moment...

20 years a Zencart User

27 Jan 2010, 2:14 PM
#12
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #12 by schoolboy

I see that you currently have:

v_products_quantity = 0
and
v_status = 0

... on all products

Is this intentional?

When you re-populate the data, do you want these to be different values, because if so we should do them at the same time as the image naming...

20 years a Zencart User

27 Jan 2010, 2:22 PM
#13
justin3085 avatar

justin3085

New Zenner

Join Date:
Jan 2010
Location:
New Jersey
Posts:
22
Plugin Contributions:
0

Post #13 by justin3085

You may consider it intentional. I havent streamlines all that type of information until I figured out how to get the images in.
I may have even just given you a section that doesnt have stock at the moment. that would figure

-Justin
http://WWW.CJTSUPPLY.COM
"Tight lines"

27 Jan 2010, 2:44 PM
#14
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #14 by schoolboy

OK... it's just that it's better to get all the data pertaining to a product in order, so that the EP uploads are kept to a minimum...

... there is always a bit of a risk that EP will foul the data-sets...

Anyway...

If you now open (in MS Excel) that TXT file you sent me, freeze-panes the top row, so you see the headers when scrolling.

ONE
Then, insert a column to the RIGHT of column A (between v_products_model and v_products_image)

So you now have a BLANK column between the two.

TWO
In cell B2, type the following:

=CONCATENATE(A2,".jpg")

THIS ASSUMES YOUR IMAGES ARE ALL .jpg (lower case)

THREE
Click OUT of that cell, making sure the fomula is intact

FOUR
Click on cell B2, and [ctrl + c] (to copy the formula)

Place cursor on cell C2, hold down mouse, drag to bottom of column, so all cells are highlighted, then [ctrl + v] (paste the formula in all cells)

FIVE
You SHOULD now see all your product codes with the .jpg extention - thereby naming your images. But note... this is still in formulaic format!

SIX
Drag cursor down all of column B, except the header cell (B1 - which is blank). [ctrl + c] COPY the column.

SEVEN
Activate Cell C2 (just under v_products_image)

Then RIGHT CLICK mouse. (Very important!)

CHOOSE PASTE SPECIAL Then click PASTE VALUES RADIO BUTTON, then OK.

VOILA ! You now have all your image names in the correct column!

EIGHT
DELETE column B


Now.. before you do this with your entire product list, use this little EP file as a TEST (so you just do the 40 or 50 products)

Remember... BACKUP database before you use EP to insert...

Now... do this to your spreadsheet and then tell me if it all worked...

20 years a Zencart User

27 Jan 2010, 2:48 PM
#15
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #15 by schoolboy

If MagneticOne can import spreadsheets, then you can try doing the same process with MagneticOne...

All you are doing is using Excel CONCATENATE formula to append .jpg to the Product Code

If MagenticOne has the capacity to IMPORT the excel file (csv, whatever) then try that...

20 years a Zencart User

27 Jan 2010, 3:33 PM
#16
justin3085 avatar

justin3085

New Zenner

Join Date:
Jan 2010
Location:
New Jersey
Posts:
22
Plugin Contributions:
0

Post #16 by justin3085

I really appreciate the help. I will give it a go and see how it works. Thank you !

-Justin
http://WWW.CJTSUPPLY.COM
"Tight lines"

27 Jan 2010, 5:38 PM
#17
justin3085 avatar

justin3085

New Zenner

Join Date:
Jan 2010
Location:
New Jersey
Posts:
22
Plugin Contributions:
0

Post #17 by justin3085

Ok, whether I use EP or magnetic one some where my categories are getting messed up BUT it isn't a big deal to fix as I need to do some tidying anyhow.

So I won't be able to do the entire catalog in one shot so I am working in sections and using the =CONCATENATE is shaving TONS of time off entering in each one.

I thank you greatly for the patience and assistance!:clap::flex:

-Justin
http://WWW.CJTSUPPLY.COM
"Tight lines"