Adding Product Images to Image Slider

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • monkeyevil
    Mivite

    • Dec 2006
    • 126

    #1

    Adding Product Images to Image Slider

    I am trying to create an image slider on the PROD page that pulls ALL images for each product. I'm looking for something like this but am not sure of the correct MIVA language. Basically, for each image a div or slide will be created with that image in it.


    <div class="imageslider">
    <mvt:foreach iterator="image" array="images">
    <div><img src="&mvt:product:image;" alt="&mvt:product:name;" /></div>
    </mvt:foreach>
    </div>

    Has anyone done this?
    www.jcroffroad.com
  • Brennan
    Super Moderator









    • Jun 2009
    • 3481

    #2
    This example will load all images for a product:

    http://docs.miva.com/Code-Samples/load-product-images
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment

    • monkeyevil
      Mivite

      • Dec 2006
      • 126

      #3
      Thanks for the reply. It almost works but shows the file path to the images instead of the image itself. What would cause this?
      www.jcroffroad.com

      Comment

      • Brennan
        Super Moderator









        • Jun 2009
        • 3481

        #4
        You need to embed the filepath in an image tag:

        <img src="&mvt:data:image:image;" alt="&mvt:product:name;" /></div>
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment

        • monkeyevil
          Mivite

          • Dec 2006
          • 126

          #5
          Works great! Thanks again
          www.jcroffroad.com

          Comment

          Working...
          X