PDA

View Full Version : How to make an image mouseover?


Absath
March 6th, 2004, 05:10 PM
In the show_product_detail.php, I want the product image to change on mouse over, then change back on mouse remove.

Now, I know I have the option to upload a regular product image (Image) and a bigger version (Large Image) that people get when they click on the regular image. I have no need for the larger images, so I was wondering if I could just use that slot to upload the second image of the mouseover, in which case, what code would I use to call it?

The mouseover code looks like this:

<img src="front.gif" width="300" height="300"
onmouseover="this.src='back.gif"
onmouseout="this.src='front.gif'" />

So what snippet of code would I put in place of "front.gif" and "back.gif"?

-Tim

Absath
March 6th, 2004, 05:40 PM
And actually, while I'm asking, I've got another question. Most of my product is clothing. A single design might come in multiple colors. I can create options so that a customer can choose their size and color... but if a particular size/color combination is out of stock, it won't display that. It only displays the product out of stock as a whole. I have no way to input how many different variations of a single product I have in stock. Is there a way to change this? Without having to create duplicate products for each color?

-Tim

Absath
March 6th, 2004, 06:23 PM
Ok, I figured out my first question by trial and error. Still curious about my second question.

-Tim

Rich
March 11th, 2004, 12:10 AM
And actually, while I'm asking, I've got another question. Most of my product is clothing. A single design might come in multiple colors. I can create options so that a customer can choose their size and color... but if a particular size/color combination is out of stock, it won't display that. It only displays the product out of stock as a whole. I have no way to input how many different variations of a single product I have in stock. Is there a way to change this? Without having to create duplicate products for each color?

-TimThere is no way to do this in the current version. Inventory control does not take product options into consideration.

We've had other requests for this functionality and hope to include it in the future.