Announcement

Collapse
No announcement yet.

Size of pop up

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

    Size of pop up

    Hi, I would like to turn the product image to a hyperlink to have a pop up. Following the advanced guide I have modify the Act_ProductLine.html. Now I would like the pop up to be open at the exact size of the photo. Some product are 800 * 600, some 500*300 etc. Is it possible to open the pop up at the size of the photo ?
    Thank you.
    My website : www.pool.fr
    Didier
    www.supreme.fr
    _____________________
    Saint Malo. France

    #2
    Hi,

    From the changes you made to the template, this bit of code ('CUSTOMVAR:URL',500,400) , determines the size of the additional pop-up window. If you have a lot of different size photographs then you may want to create multiple Productline templates and name them differently, in each of these you will have to define the width , hight and then on the product select the respective template on the layout tab.

    Kind regards,
    Bruce King
    SellerDeck

    Comment


      #3
      Ok thank you. So there is no way to get the size of the pop up adapted automatically to the size of the photo ? I think it was possible.
      Didier
      www.supreme.fr
      _____________________
      Saint Malo. France

      Comment


        #4
        Hi Didier

        Is the link you are using within your product layout template? (Act_ProductLine.html or similar?) If it is, try:

        ('CUSTOMVAR:URL',NETQUOTEVAR:INFOIMAGEWIDTH,NETQUOTEVAR:INFOIMAGEHEIGHT)

        These vars bring in width and height of the image in the pop-up window and should work.

        Comment


          #5
          Hi Chris. I have tried with your modification, but it doesn't work. To get the pop up windows I have used the information found in the advanceguide_5, page 44 and add the following script in Act_Primary.html :
          function popUp(url) {window.open(url, 'newwindow',
          'width=620,height=510,menubar=off,directories=off,toolbar=off');}

          So if I add your modification in Act_ProductLine3.html, it gives an error message. So ?
          Didier
          www.supreme.fr
          _____________________
          Saint Malo. France

          Comment


            #6
            Don't edit the function in actiniccore.js

            Just use the following code within the product layout template:

            <a href="javascript:ShowPopUp('CUSTOMVAR:URL',NETQUOTEVAR:INFOIMAGEWIDTH,NETQUOTEVAR:INFOIMAGEHEIGHT);">Click me</a>

            Where 'CUSTOMVAR:URL' is set to the value of the pop-up window name.

            Comment


              #7
              Ok I have cancel the function in actiniccore.js and change to the product layout template : NETQUOTEVAR:PRODUCTBEGINLINK
              <a href="javascript:ShowPopUp('CUSTOMVAR:URL',NETQUOTEVAR:INFOIMAGEWIDTH,NETQUOTEVAR:INFOIMAGEHEIGHT);">Agrandir</a>
              NETQUOTEVAR:PRODUCTENDLINK.
              It give me a mistake ?
              Didier
              www.supreme.fr
              _____________________
              Saint Malo. France

              Comment


                #8
                Didier

                You have put it in the wrong place. Please see the attached template.
                Attached Files

                Comment


                  #9
                  Hi Chris. I have used your template without any change. It doesn't work, I have something very strange (words, photo and NETQUOTEVAR:EXTINFOLINKNETQUOTEVAR:EXTINFOBUTTON
                  Agrandir

                  Prix : 939,00 €
                  NETQUOTEVARISCOUNTINFO NETQUOTEVAR:OTHERINFOPROMPT NETQUOTEVARATEPROMPT Click me)
                  I have to put my old templates for the week end waiting for a solution next week. Thank you. Have a good week end.
                  Didier
                  www.supreme.fr
                  _____________________
                  Saint Malo. France

                  Comment


                    #10
                    Pop Up

                    I always have my problem with the size of the pop up. Following the Actinic advance guide, I have create a script to define the function for the pop up : I have attached this code. And I have create a new custom property called 'URL'. and in the 'Act_ProductLine.html' I have replaced NETQUOTEVAR:PRODUCTIMAGE with '<A HREF="javascriptopUp('CUSTOMVAR:URL')">NETQUOTEVAR:PRODUCTIMAGE</A>'.
                    And the code to call the pop from the image is :
                    BR><BR>NETQUOTEVAR:PRODUCTBEGINLINK
                    <A HREF="javascriptopUp('CUSTOMVAR:URL')">NETQUOTEVAR:PRODUCTIMAGE</A>
                    NETQUOTEVAR:PRODUCTENDLINK
                    <BR><FONT FACE=VERDANA SIZE=1><I>NETQUOTEVAR:PRODUCTREF</I></FONT>
                    </TD>

                    And to call from the loupe with "img src="loupe.jpg"></A>" instead of "NETQUOTEVAR:PRODUCTIMAGE". The code act_productline is jointed to this post.

                    Is there somebody to help me to change this code, to get a pop up at the exact size of the product ?
                    Thank in advance.
                    Attached Files
                    Didier
                    www.supreme.fr
                    _____________________
                    Saint Malo. France

                    Comment


                      #11
                      Hi,

                      I've asked our development team if this is possible.
                      ********************
                      Tracey
                      SellerDeck

                      Comment


                        #12
                        Thank you. It would be very helpfull for me. And I am very surprise that nobody asked for this before. Hope you can find a solution !
                        Thanks
                        Didier
                        www.supreme.fr
                        _____________________
                        Saint Malo. France

                        Comment


                          #13
                          Hi,

                          I'm afraid that we can't get exactly what you want but we could have it so that all the popups in one section are the same size.

                          To to this follow use the following between the <HEAD> tags in your primary template:

                          <script language="JavaScript">
                          <!--// beginning of Javascript script
                          function popUp(url) {
                          window.open(url, 'newwindow',
                          'width=CUSTOMVAR:POPWIDTH,height=CUSTOMVAR:POPHEIGHT,menubar=off,directories=off,toolbar=off');
                          }
                          // end of script -->
                          </script>

                          The code in the productline template is the same as in the AUG.

                          Then set up two more custom properties - POPWIDTH and POPHEIGHT in Advanced | Custom Properties.

                          Then at the section level add these properties and put in the relevant values for popup windows in the specific sections (untick 'searchable' and tick 'use as customvar').
                          ********************
                          Tracey
                          SellerDeck

                          Comment


                            #14
                            Hi
                            What do you mean by "AUG"
                            No problem to add the replace the code in the primary template and create the two more custom properties. But I have problem to untick 'searchable' and tick 'use as customvar' : my softawer is in french and I'm not sur that translation is good : On the custom properties I have : Properties, value, custom property name, file name (tickable) and use file content (tickable).
                            Can you send me an image representing this zone with all the value.
                            Thanks
                            Didier
                            www.supreme.fr
                            _____________________
                            Saint Malo. France

                            Comment


                              #15
                              THe 'AUG' is the 'Advanced User Guide' and is available from here: http://www.actinic.co.uk/support/downloads.htm

                              With regards to the tickboxes, you don't have to worry. You just need to fill in the 'Properties' field with the custom property name and the 'Value' field with the value you want.

                              Comment

                              Working...
                              X