Announcement

Collapse
No announcement yet.

Image types on emails

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

    Image types on emails

    I was looking at this post in the 5.5 forum and wanted to see if there was anything new in v9

    http://extranet.miva.com/forums/show...ct+image+email

    I would like to show the product image in an email and I am following the directions. I believe my problem is that there is no way for me to assign an image type to the body of the email. See step 2 of this page: http://extranet.miva.com/forums/show...ct+image+email. It says to "Go to the BASK page and then click on the “basket contents” tab. Assign the image type you want to display here to this page by checking the box next to the image type."

    How do I get the check boxes for the image types to appear on the email page so that I can check them?

    #2
    Re: Image types on emails

    Originally posted by agarvey View Post
    I was looking at this post in the 5.5 forum and wanted to see if there was anything new in v9

    http://extranet.miva.com/forums/show...ct+image+email

    I would like to show the product image in an email and I am following the directions. I believe my problem is that there is no way for me to assign an image type to the body of the email. See step 2 of this page: http://extranet.miva.com/forums/show...ct+image+email. It says to "Go to the BASK page and then click on the “basket contents” tab. Assign the image type you want to display here to this page by checking the box next to the image type."

    How do I get the check boxes for the image types to appear on the email page so that I can check them?
    Hey

    I am not sure which email template you are using but on my Order Confirmation: Customer template I have the option to choose image types under order contents. http://puu.sh/gDena/930d8da356.png
    Happie Mendenhall
    Support Technician
    Miva, Inc.

    Comment


      #3
      Re: Image types on emails

      I see the order contents if I include it in the items, but how do I include it in the Details section.

      For example, in my details section of my email, I have
      Thank you for your order. If you want to order again, please click here:
      <Image> and <link>

      I am guessing I need the
      <image> and <link> to refer to the order contents section, so that the details section actully looks like:
      Thank you for your order. If you want to order again, please click here:
      <mvt:item:order_contents>

      If that is correct, what is <mvt:item:order_contents> supposed to be.

      If that is not right, I currently have the following in the details
      <mvt:if expr="l.settings:item:imagetypes:basket">
      <img src="&mvte:item:imagetypes:basket;" alt="&mvt:item:name;" title="&mvt:item:name;">


      And the basket image checked and selected in the order contents section.

      Which is not working.

      Comment


        #4
        Re: Image types on emails

        I am still struggling with this. Hoping someone can help me out. I would like to put an image in an email. Don't really care how. I am happy to use what we have or go through the entire catalog and assign different types. Nothing I am doing seems to work.

        Here is my code. This is on a page template that is called by an external custom extension. It works similar to Weiland's followon module.

        We were formally using scene7 for images, but we are switching. Here is the code for that. This works, so toolkit is not the problem. I also upgraded to the most recent version of toolkit to make sure.

        Code:
        <mvt:item name="toolkit" param="customc|temp_image|l.all_settings:item:code|scene7isname" />
                    <img src="http://s7d5.scene7.com/is/image/JustHealthShops/&mvte:global:temp_image;?&wid=110&hei=110" alt="&mvte:item:name; (&mvte:item:code;)" />
        This is what I got from the followon email example from weiland's documentation. This shows nothing on the email.
        Code:
        <mvt:item name="toolkit" param="customimagec|ipath|l.all_settings:item:code||150|150|" />
        <mvt:if expr="NOT ISNULL l.settings:toolkitadditionalimages[1]:generated:image">
            <img src="&mvte:toolkitadditionalimages[1]:generated:image;" border="0">
        <mvt:else>
            <mvt:if expr="NOT ISNULL l.settings:item:thumbnail">
                <img src="&mvt:item:thumbnail;" border="0">
            <mvt:else>
                &nbsp;
            </mvt:if>
        </mvt:if>
        This is also doesn't work and I don't remember where I got this.
        Code:
        <mvt:item name="toolkit" param="customimagec|big|g.product_code|" />
        <mvt:if expr="g.big">
        <mvt:foreach iterator="image" array="toolkitadditionalimages">
        <img src="&mvt:global:imageroot;&mvte:image:image:image;">
        </mvt:foreach>
        </mvt:if>
        If I can't assign the order contents to the page to get the basket image imagetype, what else can I try? How do I assign a thumbnail image, so at least this code will work:
        Code:
        <mvt:if expr="NOT ISNULL l.settings:item:thumbnail">
                <img src="&mvt:item:thumbnail;" border="0">

        Comment


          #5
          Re: Image types on emails

          Is toolkit item assigned to the items list of the email page template?

          For this line to work
          <mvt:item name="toolkit" param="customimagec|ipath|l.all_settings:item:code ||150|150|" />
          you must have an image with 150 as one of the dimensions. Also, I don't see your foreach line so I don't know what the iterator is. Hence, "item" may not be accurate in the array.

          For this line to work
          <mvt:item name="toolkit" param="customimagec|big|g.product_code|" />
          you would have to have a variable called product_code in the email. That is not likely to exist. That variable is usually found on the PROD page, not emails or most other pages in the store.
          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
          Facebook http://www.facebook.com/EmporiumPlus
          Twitter http://twitter.com/emporiumplus

          Comment


            #6
            Re: Image types on emails

            Thanks for the reply. I removed the code that was supposed to only go on the product page and am now trying to fix the statement starting with
            Code:
            <mvt:item name="toolkit" param="customimagec|ipath|l.all_settings:item:code||150|150|" />.
            So, I took an image and made it 150x150. I put in the image tab of the product. I assigned a type Main to it.
            This is what it looks like in catalog -> products -> edit product x -> images

            Image Type Width Height
            graphics/0000001/imagename.jpg Main 150 150
            graphics/0000001/imagename2.jpg Basket 1800 1800
            I have this code on my email template:
            Code:
            <mvt:foreach array="followup:items" iterator="item">
                     <tr>
                       <td style="text-align: center;" width="110">
                        <mvt:item name="toolkit" param="customc|temp_image|l.all_settings:item:code|scene7isname" />
                        <img src="http://s7d5.scene7.com/is/image/JustHealthShops/&mvte:global:temp_image;?&wid=110&hei=110" alt="&mvte:item:name; (&mvte:item:code;)" />
            A
            <mvt:item name="toolkit" param="customimagec|ipath|l.all_settings:item:code||150|150|" />
            <mvt:if expr="NOT ISNULL l.settings:toolkitadditionalimages[1]:generated:image">
            B
                <img src="&mvte:toolkitadditionalimages[1]:generated:image;" border="0">
            <mvt:else>
                <mvt:if expr="NOT ISNULL l.settings:item:thumbnail">
            C
                    <img src="&mvt:item:thumbnail;" border="0">
                <mvt:else>
                    &nbsp;
                </mvt:if>
            </mvt:if>
            The test email only shows A. It never gets into the B or C code.

            Comment


              #7
              Re: Image types on emails

              Also, toolkit is assigned to the page

              Comment


                #8
                Re: Image types on emails

                You can't just copy a 150 size image to the server. Those have to be images that are generated by the image machine. Your image machine has to be functioning and generating images of the size you specify. The email code does not generate images. Only the image machine does that, eg on the prod, ctgy, etc pages.
                Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                Facebook http://www.facebook.com/EmporiumPlus
                Twitter http://twitter.com/emporiumplus

                Comment


                  #9
                  Re: Image types on emails

                  So, I finally got this working on my one store and moved the code over to another store and it doesn't work.

                  If anyone has any ideas that I should check, I am glad to look into it more. Here is the code that is not working.

                  Code:
                  <mvt:item name="toolkit" param="customimagec|ipath|l.all_settings:product:code||486|400|" />
                  <mvt:if expr="NOT ISNULL l.settings:toolkitadditionalimages[1]:generated:image">
                  	<center>
                  	<br>
                  	<a href="/&mvte:product:code;.html">
                  	<img src="&mvte:toolkitadditionalimages[1]:generated:image;" border="0"></a>
                  	</center>
                  <mvt:else>
                  	<mvt:if expr="NOT ISNULL l.settings:product:thumbnail">
                  		<center>
                  		<br>
                  		<a href="/&mvte:product:code;.html">
                  		<img src="&mvte:product:thumbnail;" border="0"></a>
                  		</center>
                  	<mvt:else>
                  		<br>
                  	</mvt:if>
                  </mvt:if>
                  Oddly, this little bit of code is working for one product
                  <img src="&mvte:product:thumbnail;" border="0">
                  but I do not know where that image is, if I did, I would just add this image to every product. The image in the images tab of the product is not the same as the one displayed in the email, so it must be left over from legacy code.

                  I did make sure that toolkit is assigned. I did upgrade the followon extension. I did make sure that the size of the image size in Product Display Layout Image Dimensions is 486 x 400.

                  Any thoughts?

                  Comment

                  Working...
                  X