Announcement

Collapse
No announcement yet.

Thumbnail image on Printable Invoice

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

    Thumbnail image on Printable Invoice

    How do you get a product thumbnail image to display on the ORDER_INVOICE Printable Invoice template? I have tried assigning the order_contents Item which enabled images. I used the img token from the order_contents field
    Code:
    <img src="&mvte:item:imagetypes:main;" alt="&mvte:item:name;" />
    but the thumbnail doesn't display. What am I missing?

    Leslie
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Also, I'd like to be able to display the attribute thumbnail, if there is one.
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    Comment


      #3
      The newer themes use a page called ORDP which essentially uses the same feature of order history lookup to display the order contents. If you assign the view_order item it should provide you with the data you need.

      Brennan Heyde
      VP Product
      Miva, Inc.
      [email protected]
      https://www.miva.com

      Comment


        #4
        Originally posted by Brennan View Post
        The newer themes use a page called ORDP which essentially uses the same feature of order history lookup to display the order contents. If you assign the view_order item it should provide you with the data you need.

        Not using a newer theme and just a too much invested at this point to switch. So there is no way to do this with a version of Iron & Wool?
        Leslie Kirk
        Miva Certified Developer
        Miva Merchant Specialist since 1997
        Previously of Webs Your Way
        (aka Leslie Nord leslienord)

        Email me: [email protected]
        www.lesliekirk.com

        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

        Comment


          #5
          Still trying to figure this one out - the INVC screen works perfectly and even displays the attribute swatch if there is one. On the INVC template Order Contents field I'm using
          Code:
          <mvt:if expr="l.settings:item:imagetypes:main">
                              <img src="&mvte:item:imagetypes:main;" alt="&mvt:item:name;" title="&mvt:item:name;" />
                          <mvt:else>
                              &nbsp;
                          </mvt:if>
          On the ORDER_INVOICE template Order Contents field I'm using
          Code:
          <mvt:if expr="ISNULL l.settings:item:imagetypes:main">
                          &nbsp;
                      <mvt:else>
                          <div class="item-image"><img src="&mvte:item:imagetypes:main;" alt="&mvte:item:name;" /></div>
                      </mvt:if>
          I have the Product Image: Main checked and even have the Custom Fields: Image Type: Main assigned to the template but it's not working and makes no sense - why is it even there if it doesn't work???
          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment


            #6
            Originally posted by Brennan View Post
            The newer themes use a page called ORDP which essentially uses the same feature of order history lookup to display the order contents. If you assign the view_order item it should provide you with the data you need.
            So I tried using the ORDP Printable Invoice in the Batch Reports and it's still not pulling in any thumbnails. FWIW, the code on the ORDP is the same as what I had already used on the ORDER_INVOICE Printable Invoice.
            Leslie Kirk
            Miva Certified Developer
            Miva Merchant Specialist since 1997
            Previously of Webs Your Way
            (aka Leslie Nord leslienord)

            Email me: [email protected]
            www.lesliekirk.com

            Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

            Comment


              #7
              Does you image have a type of main and is that image type assigned to the page under custom fields?
              Brennan Heyde
              VP Product
              Miva, Inc.
              [email protected]
              https://www.miva.com

              Comment


                #8
                Originally posted by Brennan View Post
                Does you image have a type of main and is that image type assigned to the page under custom fields?
                Yes, it's assigned to the ORDER_INVOICE Page and to the ORDP Page. Question - when the ORDP page is assigned to the Batch Reports, does it create a new Page? I now see a Page ORDER_ORDP. I assigned the Main Image to it too and the thumbnail still does not display.
                Leslie Kirk
                Miva Certified Developer
                Miva Merchant Specialist since 1997
                Previously of Webs Your Way
                (aka Leslie Nord leslienord)

                Email me: [email protected]
                www.lesliekirk.com

                Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                Comment

                Working...
                X