Forums / All Other Contributions/Addons / Swatch mouseOver main image swap - almost working

Swatch mouseOver main image swap - almost working

Locked

Views: 4,000

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
19 Jul 2007, 7:13 PM
#1
damicron avatar

damicron

New Zenner

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

Swatch mouseOver main image swap - almost working

need help!

I'm using the Swap image module to create a swatch that will swap the main product image for different colors of the same product.

I don't think this module is working correctly or it would be perfect for what i need as i see no other options for creating this. If this module is working correctly it should switch the main product image to the MED image of my swatches, which are actually small colored alt images. The MED images are actually the colored product images. Take a look.

lifeforceone.com/zen135/index.php?main_page=product_info&products_id=1

instead of showing the MED image it is showing the small image. the module does say that it should show the MED if available. If you click on some of my swatches the MED image will pop up in a window.

Anybody know a fix?

30 Aug 2007, 10:43 PM
#2
oxymoronz avatar

oxymoronz

New Zenner

Join Date:
Apr 2007
Posts:
65
Plugin Contributions:
0

Re: Swatch mouseOver main image swap - almost working

This is almost exactly the thing I am trying to do with my site except instead of rolling over the swatches I want to use the drop down menu.
I am still a little new to scripting. Which files did you modify so that it would find and use your images?

7 Sep 2007, 10:01 PM
#3
genabit avatar

genabit

Zen Follower

Join Date:
May 2004
Posts:
104
Plugin Contributions:
0

Re: Swatch mouseOver main image swap - almost working

I am also new to scripting, the overides function is supposed to allow you to use javascript to do the mouseovers but I can't seem to get it to work online for my zencart site. Is anyone willing to share examples of how to do mouseovers with the overrides?

So far I have put an onload.js in the includes/templates/custom/jscript/onload directory but it doesn't seem to pick it up and use the mouseover images.

It works fine in local mode.... so I must be doing something wrong.

Regards,

Michael

oxymoronz:

This is almost exactly the thing I am trying to do with my site except instead of rolling over the swatches I want to use the drop down menu.
I am still a little new to scripting. Which files did you modify so that it would find and use your images?

7 Sep 2007, 10:22 PM
#4
genabit avatar

genabit

Zen Follower

Join Date:
May 2004
Posts:
104
Plugin Contributions:
0

Re: Swatch mouseOver main image swap - almost working

the image being displayed is not named the medium name, its named with the

this is the original image:

http://www.lifeforceone.com/zen135/images/medium/shirts/shirt1_MED.gif

this is what is showing in the window:

http://www.lifeforceone.com/zen135/images/shirts/shirt1_red.gif

so the path needs to be adjusted to put the correct information in. When you click on the swatch this is the path that is coming up (for larger image)

http://www.lifeforceone.com/zen135/images/large/shirts/shirt1_red_LRG.gif

Maybe you need to add the MED in the filename.

i.e. shirt1_red_MED.gif

damicron:

need help!

I'm using the Swap image module to create a swatch that will swap the main product image for different colors of the same product.

I don't think this module is working correctly or it would be perfect for what i need as i see no other options for creating this. If this module is working correctly it should switch the main product image to the MED image of my swatches, which are actually small colored alt images. The MED images are actually the colored product images. Take a look.

http://www.lifeforceone.com/zen135/index.php?main_page=product_info&products_id=1

instead of showing the MED image it is showing the small image. the module does say that it should show the MED if available. If you click on some of my swatches the MED image will pop up in a window.

Anybody know a fix?

23 Oct 2007, 3:11 AM
#5
hortense avatar

hortense

New Zenner

Join Date:
Jan 2006
Posts:
7
Plugin Contributions:
0

Re: Swatch mouseOver main image swap - almost working

Ive been trying to figure this out as well. Clicking on an attribute images changes the list selection. I dont being being a bit messy with the code (i'm trying to get duplicate attribute sets to act as one), but the client really wants to have it this way. Here's what I have as of right now:

27 Dec 2007, 11:00 PM
#6
oxymoronz avatar

oxymoronz

New Zenner

Join Date:
Apr 2007
Posts:
65
Plugin Contributions:
0

Re: Swatch mouseOver main image swap - almost working

In looking at the source code I noticed that your images are coming from the additional images area of the page. I would like this swap image module to work from the attribute images instead of the additional images. Is this possible with this module?