Announcement

Collapse
No announcement yet.

New product image template

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

    #16
    Post lunch break - I recall have a similar (but different issue) trying to draw a CMV of a HTML file c/w image and text into the Act_Primary ages back when on v6 and failing to get it to work fully.

    Why not cut out the Act_ProductImage route and code direct into the Act_MrProductLine with something like

    <img src="NETQUOTEVAR:IMAGEFILE" alt="NETQUOTEVAR:ALTERNATETEXT" width="NETQUOTEVAR:IMAGEWIDTH" height="NETQUOTEVAR:IMAGEHEIGHT" border=1>

    plus any other attributes you want in there and then specify that product template against the desired products... obviusly depending on what exactly you are trying to achieve....


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #17
      OK - I got this working.

      I created the Act_myProductImage.html template file.
      Created Advanced | Custom Property MYPRODIMG
      Added MYPRODIMG to Design | Options Site Defaults, set the value to Act_myProductImage.html ticked use as customvar, file name and use file contents.
      [add] Edited the product layout template and added CUSTOMVAR:MYPRODIMG in front of, then commented out NETQUOTEVAR:PRODUCTIMAGE.[/add]
      Went to the product and added the customvar to Properties tab - again specifying the Act_myProductImage.html value and ticking use as customvar, file name and use file contents.

      It works
      Last edited by wjcampbe; 16-Sep-2005, 01:38 PM. Reason: spelling and add layout template change
      Bill
      www.egyptianwonders.co.uk
      Text directoryWorldwide Actinic(TM) shops
      BC Ness Solutions Support services, custom software
      Registered Microsoft™ Partner (ISV)
      VoIP UK: 0131 208 0605
      Located: Alexandria, EGYPT

      Comment


        #18
        Bill, That's exactly what I've done. It works except for the ALT text.
        Have you hovered the mouse over the product image and confirmed that the ALT text is correct?

        Comment


          #19
          Bill - does that work for you on a global scale under Design Options | Site Defaults and removing the CMV against each product?


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #20
            Jont, I noticed that one too. You shouldn't need to include the CUSTOMVAR in the product properties since its defined globally in the design settings. I've added it in just to make sure it doesn't make a difference and it doesn't.

            Comment


              #21
              Jont, I tried bypassing the Act_MyProductImage.html file and putting the code directly into Act_ProductLine file as you suggested and I get the same result. Still no ALT text!!

              Comment


                #22
                grrrrr.....

                going to be something VERY obvious or an Actinic impossibility


                Bikster
                SellerDeck Designs and Responsive Themes

                Comment


                  #23
                  @Jont #19 - No it would not work properly until I included the Customvar as a property on the product.

                  Before that step, I got a border surrounding my alternate text customvar content (which adds extra text to the NQV:ALTERNATETEXT) with NQV:ALTERNATETEXT spelled out within the wrapping text (i.e. not coverted).

                  @domino1 #18 - yes the alt text I am getting is correct (as described above).
                  Attached Files
                  Last edited by wjcampbe; 16-Sep-2005, 02:20 PM. Reason: add snapshot
                  Bill
                  www.egyptianwonders.co.uk
                  Text directoryWorldwide Actinic(TM) shops
                  BC Ness Solutions Support services, custom software
                  Registered Microsoft™ Partner (ISV)
                  VoIP UK: 0131 208 0605
                  Located: Alexandria, EGYPT

                  Comment


                    #24
                    Bill,
                    I'm using V6 non-business. I don't have a "use as CUSTOMVAR" tickbox. I only have "Filename" and "Use file content" check boxes. For me, it doesn't matter whether or not I include the customvar in the product. I still get the same result. See jpg.
                    Attached Files

                    Comment


                      #25
                      Actinic don't list any change to CUSTOMVAR handling in the "Enhancements in v7" - sorry. I am using v7 Catalog.

                      Try adding a customvar alttext, mine is
                      Code:
                      buy' + NETQUOTEVAR:ALERNATETEXT + 'from Egyptian Wonders with confidence. Click this image to see the full range.
                      - see if that will display (I commented out the standard NQV).
                      Bill
                      www.egyptianwonders.co.uk
                      Text directoryWorldwide Actinic(TM) shops
                      BC Ness Solutions Support services, custom software
                      Registered Microsoft™ Partner (ISV)
                      VoIP UK: 0131 208 0605
                      Located: Alexandria, EGYPT

                      Comment


                        #26
                        Tried that Bill. I get NETQUOTEVAR:ALTERNATETEXT planted in the middle unconverted.

                        I think the problem is that NETQUOTEVAR:ALTERNATETEXT is context sensitive. If you look in the advanced user guide you can see that it's meaning differs depending on where it is called from. EG from Act_BrochureImage.html it gets converted to "Company Name". It only gets converted to the product's "Short Description" text if used in the context of Act_ProductImage.html.

                        It seems that NETQUOTEVAR:ALTERNATETEXT is meaningless in the context of my file Act_MyProductImage.html.

                        The only way that I can get the ALT text to display correctly is to add a new CUSTOMVAR called ALTTEXT. I've then added that CUSTOMVAR into the properties of the product and cut and pasted the "Short Description" text in as its value.

                        Comment


                          #27
                          FWIW - as soon as I removed the CUSTOMVAR from the product properties, the new image setup broke and I was back to the ALTTEXT customvar with the NQV unconverted in the middle and a border.
                          Bill
                          www.egyptianwonders.co.uk
                          Text directoryWorldwide Actinic(TM) shops
                          BC Ness Solutions Support services, custom software
                          Registered Microsoft™ Partner (ISV)
                          VoIP UK: 0131 208 0605
                          Located: Alexandria, EGYPT

                          Comment


                            #28
                            Thanks for your help on this fellas!

                            Comment


                              #29
                              Originally posted by jont
                              <img src="NETQUOTEVAR:IMAGEFILE" alt="NETQUOTEVAR:ALTERNATETEXT" width="NETQUOTEVAR:IMAGEWIDTH" height="NETQUOTEVAR:IMAGEHEIGHT" border=1>
                              Hmm... changing NQV:ALTERNATETEXT to NQV:PRODUCTNAME .... gets the border, the image and the ALT text in FF but nothing in IE!!!


                              Bikster
                              SellerDeck Designs and Responsive Themes

                              Comment


                                #30
                                Hahaha... remove the height and width variable gets it working in IE and with the ALT text also
                                Attached Files


                                Bikster
                                SellerDeck Designs and Responsive Themes

                                Comment

                                Working...
                                X