Announcement

Collapse
No announcement yet.

Two images in the extended info pop up?

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

    Two images in the extended info pop up?

    This is the URL of the site I am working on (http://clientel-testsite.co.uk/acata...ys___NEW_.html)

    My client would like to be able to add two images to the extended info page for the back and front of tshirts, If you click on the lukewarm tshirt you will see sort of what I am trying to achieve (its about the 7th one down)

    I would like to find out the easiest way of adding an extra image which lines up with the one used in the Act_ExtendedInfo template. I was going to send the HTML over to the client so she can edit the file name where appropriate in the window, however it is offline with the image already place by the template.

    She doesnt have access to any graphics programs and doesnt want me to place both images as one each time because of the extra cost for her.

    What is the easiest way of doing this as I could apply a different template for each product but she would have to edit the template for each image filename which i want to avoid, I have never used custom NETQUOTEVARS before, would these be useful?

    Any ideas would be much appreciated,

    Cheers,

    Tracey

    #2
    well, if you dont need a text description, then you could probably use the data from that in an image tag.

    the default popup has this in its template:

    <TR>
    <TD valign="top">NETQUOTEVAR:INFOTEXT</TD>
    </TR>


    and if you make it say this:

    <TR>
    <TD valign="top"><img src="NETQUOTEVAR:INFOTEXT"></TD>
    </TR>

    then (this rather klunky hack) will let you put a path to an image in the description.



    alternatively, add some CUSTOMVAR: and use clever javascript to detect their presence, and optionally display the images.

    Comment


      #3
      There's an easier way. Put your extra image in Product Details / General / Thumbnail. This lets you use the Browse method of adding the image instead of having to type it's name exactly, so is very convenient.

      Now in your Extended Info Template add

      NETQUOTEVAR:PRODUCTTHUMBNAILIMAGE

      where you want this image to appear.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        DAMN! you clever chap norm.


        and i'd just knocked up a clever javascript function too

        in your header...
        Code:
        <script>
        	function act_javaimg( imgname )
        	{
        	strhtml = '' ;
        	
        		if (imgname.length != 0) {
        			document.write( "<img src=" + imgname + ">" ) ;
        		}
        	act_javaimg = strhtml ;
        	}
        </script>
        and in your page...
        Code:
        <script>act_javaimg('CUSTOMVAR:IMAGE2')</script>
        this makes the iamge appear only if it isnt a null value.

        see... we cant use the thumbnail, becasue we use it elsewhere and its piddly small.
        Last edited by gabrielcrowe; 29-Jun-2006, 03:07 PM. Reason: oop! you'll probably need to add the image in 'additional files'.

        Comment


          #5
          DAMN! you clever chap norm.
          Don't feel too bad! I'm using pretty much the same idea as you because I need to be able to assign any number of extra images to a product. I enter the images as a comma-delimited string to the customvar, then use:

          Code:
          <script type="text/javascript">
          var images="CUSTOMVAR:EXTRAIMAGES";
          if (images){
          	img=images.split(",");
          	for (i=0;i<img.length;i++){
          		document.write('<img src="http://www.myurl.co.uk/acatalog/'+img[i]+'" />');
          		}
          	}
          </script>
          in the template.
          www.gbradley.co.uk
          Web Development, Actinic Patches, Scripts & more

          Comment


            #6
            thanks for the enhancement.

            much appreciated

            Comment


              #7
              Thanks very much

              Cheers everyone,

              Norm, your solution is perfect, thanks

              Comment


                #8
                Originally posted by NormanRouxel
                There's an easier way. Put your extra image in Product Details / General / Thumbnail. This lets you use the Browse method of adding the image instead of having to type it's name exactly, so is very convenient.

                Now in your Extended Info Template add

                NETQUOTEVAR:PRODUCTTHUMBNAILIMAGE

                where you want this image to appear.
                Hi Norman can you indicate where the above NETQUOTE needs to be added for this feature to work.

                PS. I'm a newbie at this.
                Any help is appreciated.

                Thanks
                Victor

                Comment


                  #9
                  Edit Act_ExtendedInfo.html (it's a self contained HTML page). Wherever you want the image to appear add NETQUOTEVAR:PRODUCTTHUMBNAILIMAGE
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    Originally posted by NormanRouxel
                    Edit Act_ExtendedInfo.html (it's a self contained HTML page). Wherever you want the image to appear add NETQUOTEVAR:PRODUCTTHUMBNAILIMAGE
                    OOPS! I'm working with v8. Found this thread to reply too! But I just realized it's v7 Support. I assume v8 is different.

                    Victor

                    Comment


                      #11
                      Best start afresh by asking in V8.
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment

                      Working...
                      X