Forums / All Other Contributions/Addons / Duplicating products with different images

Duplicating products with different images

Locked

Views: 995

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
5 Oct 2007, 10:05 AM
#1
fright_rags avatar

fright_rags

Zen Follower

Join Date:
Aug 2005
Posts:
134
Plugin Contributions:
0

Duplicating products with different images

I posted this inthe Image Handler support thread but unfortunately it got completely buried. Anyway, I need to creat different categories of products using the same designs. I sell shirts and need to make the same designs available in shirts, hoodies, girl's tees, etc. Since colors vary from style to style, I cannot set up one product and have customers pick the different attributes (style, color, size) on one page as the probability of picking a combination that won't work is too high.
So, I want to create all of my products in one category, then duplicate them (not link) to the other categories where I can just change the info (attributes, price, etc). The problem is with the images. The base/main product image is fine....but when I use Image Handler 2 to add model shots (additional images) it adds them to the same product in each category. For example, if I go to one particular design in the hoodie category and upload an additional image of someone wearing a hoodie, it shows up on the same product in the shirt category, and the girl's shirt category. The only way I can get around this is to add the product manually...which will take me forever with all the products I have. I've tried renaming the product and model too, but it doesn't work. Any ideas as to how to get around this?

5 Oct 2007, 11:31 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Duplicating products with different images

Zen Cart uses the image filename assigned to the product as the "base" filename from which to determine which "additional images" also belong to that product.

So, if your product has an image name assigned as "fred.jpg", then all images whose filename match the pattern of "fred*.jpg" will be shown, including "fred123.jpg", "fred_is_a_star.jpg", "fredseesgreen.jpg", etc

In your case I suspect you're going to need to simply alter the product after copying it and edit its filename slightly to make it a tad more unique. Then use your FTP or IH tools to associate images with it. You might even be able to disassociate the existing image first directly from IH and assign new ones with the new more-unique base name.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Oct 2007, 5:44 PM
#3
fright_rags avatar

fright_rags

Zen Follower

Join Date:
Aug 2005
Posts:
134
Plugin Contributions:
0

Re: Duplicating products with different images

Yeah, I tried copying just the product (no attributes) and then altering the name of it slightly. Then I tried uploading a new image to the new product (alternate image) and named it something completely unrelated (actually, I named it with numbers this time) and still it added the image to the products (of similar design) in al the other categories. The only way around it is to start a product from scratch, but that is going to take me forever...

5 Oct 2007, 6:10 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Duplicating products with different images

What DrByte was saying is that you have to make the base image for each product unique - no product's base image name should begin with any other product's base image name. It's not clear from your description whether you did that.

It may be that IH2 has some persistent name connection?? Your problem might be in there...

7 Oct 2007, 1:41 PM
#5
fright_rags avatar

fright_rags

Zen Follower

Join Date:
Aug 2005
Posts:
134
Plugin Contributions:
0

Re: Duplicating products with different images

Hmmm....I never thought of that. Although, the weird thing is that if I set up a new product from scratch with the same base image, the duplicate image thing doesn't occur. But I will try this anyway as that might be the issue.