Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: how to get mouseover pop up on products?

  1. #1
    Join Date
    Jun 2008
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to get mouseover pop up on products?

    http://www.dynamicdrive.com/style/cs...e-viewer/P360/

    I use prostores as my store base and I am trying to use this code for my products but cant figure out where the code gets my larger image. I have my mouseover images saved as productid_mo.jpg. How does the code know which picture goes with which product? Or do I need to use a different code?

    Thanks ~ Cristy

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    The larger image is the image surrounded by the span tag. I'm taking for example what is given by DD:
    Code:
    <a class="thumbnail" href="#thumb"><img src="media/tree_thumb.jpg" width="100px" height="66px" border="0" /><span><img src="media/tree.jpg" /><br />Simply beautiful.</span></a>
    The highlighted is the larger image.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Jun 2008
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I figured that... just cant figure out how to get my image there?

    This is what I have so far:

    <a class="thumbnail" href="#thumb"><ss:image source="$product.photoImage" alt="$product.name" width="300px" height="456px" border="0" /><span><img src="media/tree.jpg" /><br /></span></a>

    How does this code know which picture goes with which product? How do the 2 pictures get linked together?

    Sorry... I am having such an issue but this is all new to me so patience and help would be greatly appreciated

    Thanks ~ Cristy

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    What language is this BTW? I haven't seen <ss> tag yet.
    Code:
    <ss:image source="$product.photoImage" alt="$product.name" width="300px" height="456px" border="0" />
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  5. #5
    Join Date
    Jun 2008
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    this is the code that prostores uses to pull items from the catalog

  6. #6
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    I'm not certain about this, but what happens when you do the same thing for the large image:
    Code:
    <ss:image source="$product.photoImage" alt="$product.name" width="300px" height="456px" border="0" />
    <span><ss:image source="$product.photoImageLarge.jpg" alt="$product.name"/><br /></span>
    </a>
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  7. #7
    Join Date
    Jun 2008
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    this might be a little more specific ... found this answer on another forum.

    custom markup language (SSML) to hit the database

    ~Cristy

  8. #8
    Join Date
    Jun 2008
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Do I need to save my pictures exactly the same way with just the words "Large" at the end? Is that what you mean by: photoImageLarge.jpg ?

  9. #9
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    No, i'm not certain, that was just a wild guess. Try this instead:
    Code:
    $product.photoImage
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  10. #10
    Join Date
    Jun 2008
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ERROR: Source string "$product.photoImageLarge.jpg" is not valid. The property or method does not exist (com.kurant.storesense.metadata.PropertyNotFoundException: Class Product does not have a property named 'photoImageLarge'.).

    I will try without the Large and see what happens

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •