Announcement

Collapse
No announcement yet.

Adding Product Images to Image Slider

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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

    #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


      #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


        #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


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

          Comment

          Working...
          X