Announcement

Collapse
No announcement yet.

customvar problems

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

    customvar problems

    hi,

    i have set up some customvars for extra thumbnails i want to show on my products...

    They work fine if I reference them from productlinelarge.html, but when I try and reference them from act_primaryproducts.html they do not work... I know there is some issues with certain netquotevars in certain templates but surely cusotmvars should work from wherever you call them????

    Any help would be greatly appreciated!!!

    #2
    If it works in 1 product template, then it will work in the other so long as you have added them into it, i.e. CUSTOMVAR:YOURCUSTOMVARNAME, so check the one which works and use the same code as is used in that to show your images and then see if it is in the other product template (spelling check on it) or copy the code in.

    Like say... If it works in 1 product template, then so long as the customvar code is in the other, then it will show, so probably just not in there or a typo is causing issues.

    Comment


      #3
      cheers for the quick reply!!!

      i think i must have damaged the template somehow...

      I just cut and paste the thumbnail from one template to the other and as you can see from the link below, when it is called from productlinelarge.html it is ok (the strap thumb), but the exact same reference from act_primaryproducts.html is giving a broken image link...

      There must be a NETQUOTEVAR or something I have destrtoyed, DOH!! Any ideas?

      http://www.artimewatches.co.uk/temp/acatalog/A_101.html

      Comment


        #4
        Unless you are pulling in from NETQUOTEVAR:Include then it has to be a CUSTOMVAR.

        When you say you cut n paste the thumbnail, how do you mean, i.e. is it programmed into the template or added directly into the text area.

        If it works in one template, then the only reason is it is not listed in the other template.

        What code are you using to show the thumbs (is it in the template or are you adding it to the text area in actinic)?

        Comment


          #5
          Hi,

          but the exact same reference from act_primaryproducts.html is giving a broken image link...
          Is this a primary template or a product template?

          If it is a primary template, then specify the image in the properties tab at the section level and it will work, otherwise you need to create a different product template.
          ********************
          Tracey
          SellerDeck

          Comment


            #6
            hi,

            I am using dreamweaver... So the the template has a layer with an image placeholder with the source set to CUSTOMVAR:STRAPTHUMB1 and the link set to CUSTOMVAR:STRAP1..

            In actinic I have created 2 custom properties STRAPTHUMB1 & STRAP1 and set their values to images\watches\strap_beige_leatherthumb.jpg & images\watches\strap_beige_leather.jpg and use as customvar and filename are checked...

            I just highlighted the layer and cut an paste from one file to the other, it is definitely the exact same code in both templates for the thumbnail...

            I have done a lot with the templates to get the right look and feel and everything is functioning OK apart from this!!!

            I have pasted both bits of code in 2 messages because it does not fit in one!! if you have 2 mins to browse through!!!!

            The only reason i do not want to use it in the act_productlinelarge.html is purely related to the positioning.. Some products will have 4 thumbs and they have to fit in the circle background, but I cannot get it right without using primary products template..

            act_productlinelarge.html WORKS!!!

            <!-- ProductLine HTML begin -->
            <!-- Insert HTML for the top of the individual product -->
            <link href="artime.css" rel="stylesheet" type="text/css" />
            <style type="text/css">
            <!--
            body {
            background-color: #000000;
            }
            .style1 {
            color: #00FFFF;
            font-style: italic;
            }
            #Layer4 { position:absolute;
            width:72px;
            height:55px;
            z-index:5;
            left: 16px;
            top: 7px;
            background-color: #FFFFFF;
            }
            -->
            </style>
            NETQUOTEVAR:INCLUDE Act_ProductSeparator.html
            NETQUOTEVAR:ENDSEPARATOR
            NETQUOTEVAR:PRODUCTFORMBEGIN
            <tr>
            <td colspan="2" rowspan="3" align="CENTER" valign="TOP" > <p>NETQUOTEVAR:TEMPLATEBEGINXML NETQUOTEVAR:PRODUCTIMAGE </p></td>
            <td align="LEFT" valign="TOP"><p><b>NETQUOTEVAR:PRODUCTNAME</b>
            <br />
            NETQUOTEVAR:PRODUCTREF <br>
            NETQUOTEVAR:PRODUCTDESCRIPTION</p>
            <p> CUSTOMVAR:SIZE
            <br />
            NETQUOTEVAR:PRODUCTBEGINLINKNETQUOTEVAR:PRODUCTLINKTEXTNETQUOTEVAR:PRODUCTENDLINK
            NETQUOTEVAR:PRICEEXPLANATION
            <b>NETQUOTEVAR:PRODUCTPRICE<br />
            <br />
            NETQUOTEVAR:EXTINFOBUTTON
            NETQUOTEVAR:ADDTOCARTBUTTON<b><a href="CUSTOMVAR:STRAP_LINK">
            Extra Strap - Click Here</a></b></p></td>
            </tr>
            <tr>
            <td align="LEFT" valign="top" >
            <div id="Layer4"><a href="CUSTOMVAR:STRAP1" target="_blank"><img src="CUSTOMVAR:STRAPTHUMB1" alt="" name="strap" width="72" height="55" border="0" id="strap" /></a></div>
            <p><a href="CUSTOMVAR:STRAP1" target="_blank"></a><br />
            NETQUOTEVAR:CARTERRORXMLNETQUOTEVAR:PRODUCTQUANTITY<br>
            NETQUOTEVAR:TEMPLATEENDXML </p>
            </td>
            </tr>
            NETQUOTEVAR:PRODUCTFORMEND
            NETQUOTEVAR:NEXT
            <!-- Insert HTML for the bottom of the individual product -->
            <!-- ProductLine HTML end -->

            Comment


              #7
              Second code..

              Act_primary_products.html NOT WORKING!!

              <!-- Primary HTML begin -->
              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
              <HTML>
              <HEAD>
              <TITLE>artime watches</TITLE>
              <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>
              <META NAME="ACTINICTITLE" CONTENT="NETQUOTEVAR:PAGEHEADER">
              <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
              <!--@act NETQUOTEVAR:HEADERMETA -->
              <!--@act NETQUOTEVAR:LOADFUNCTION -->
              <!--@act NETQUOTEVAR:SUBMITFUNCTION -->
              <!--@act NETQUOTEVAR:P3PFULLPOLICYLINK -->
              <SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT>
              <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript">
              <!--@act NETQUOTEVAR:TOPLEVELSECTIONS_RAW -->
              <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
              <!--
              /***********************************************************************
              *
              * ACT_DropListBox - returns a string containing the HTML for the SELECT listbox
              *
              ************************************************************************/

              function ACT_DropListBox(ar)
              {
              var strIDs = '<SELECT SIZE="1" NAME="ACT_droplstbox" onChange="if(options[selectedIndex].value) window.location.href=(options[selectedIndex].value)">'
              var sel = " SELECTED"
              strIDs += '<OPTION ' + sel + ' VALUE="">Select a Section</OPTION>'
              for (var i=1;i<=ar.length;i++)
              {
              if (ar[i].sURL !=null)
              {
              strIDs += '<OPTION VALUE="' + ar[i].sURL + '&NOCLEARFRAMES=1">' + ar[i].sName + '</OPTION>'
              }
              }
              strIDs+='</SELECT>'
              return strIDs
              }
              //-->
              </SCRIPT>
              <!-- Placeholder of cookie checking javascript code. Do not remove it! -->
              <Actinic:COOKIECHECK/>
              <!--
              The NETQUOTEVARs below can be uncommented for getting raw section lists:
              1. Top level section list
              2. Section list from current level and all children
              3. The whole section tree
              The rest covers the standalone structure members for each array - e.g. if
              you only need sName or sURL from an array.
              See the documentation for details.

              NETQUOTEVAR:TOPLEVELSECTIONS_RAW
              NETQUOTEVAR:CHILDSECTIONS_RAW
              NETQUOTEVAR:SECTIONTREE_RAW

              NETQUOTEVAR:SECTIONTREE_NAMES
              NETQUOTEVAR:SECTIONTREE_URLS
              NETQUOTEVAR:SECTIONTREE_IMAGES
              NETQUOTEVAR:SECTIONTREE_IMAGEWIDTHS
              NETQUOTEVAR:SECTIONTREE_IMAGEHEIGHTS
              NETQUOTEVAR:SECTIONTREE_SECTIONIDS

              NETQUOTEVAR:TOPLEVELSECTIONS_NAMES
              NETQUOTEVAR:TOPLEVELSECTIONS_URLS
              NETQUOTEVAR:TOPLEVELSECTIONS_IMAGES
              NETQUOTEVAR:TOPLEVELSECTIONS_IMAGEWIDTHS
              NETQUOTEVAR:TOPLEVELSECTIONS_IMAGEHEIGHTS
              NETQUOTEVAR:TOPLEVELSECTIONS_SECTIONIDS

              NETQUOTEVAR:CHILDSECTIONS_NAMES
              NETQUOTEVAR:CHILDSECTIONS_URLS
              NETQUOTEVAR:CHILDSECTIONS_IMAGES
              NETQUOTEVAR:CHILDSECTIONS_IMAGEWIDTHS
              NETQUOTEVAR:CHILDSECTIONS_IMAGEHEIGHTS
              NETQUOTEVAR:CHILDSECTIONS_SECTIONIDS

              The section level can be accessed through:
              NETQUOTEVAR:SECTIONLEVEL
              -->
              <!--
              The NETQUOTEVARs below can be uncommented and moved to the appropriate

              location
              to save and load shopping lists
              <A HREF="NETQUOTEVAR:SAVECARTURL"><FONT FACE=ARIAL SIZE=-1><I><B>Save

              Shopping List</B></I></FONT></A>
              <A HREF="NETQUOTEVAR:RESTORECARTURL"><FONT FACE=ARIAL SIZE=-1><I><B>Load

              Shopping List</B></I></FONT></A>
              --->
              <link href="artime.css" rel="stylesheet" type="text/css">


              <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
              <style type="text/css">
              <!--
              #Layer1 {
              position:absolute;
              width:530px;
              height:277px;
              z-index:1;
              left: 436px;
              top: 100px;
              }
              body {
              background-color: #000000;
              margin-left: 0px;
              margin-top: 0px;
              margin-right: 0px;
              margin-bottom: 0px;
              background-image: url(back_design_men.jpg);
              }
              #Layer2 {
              position:absolute;
              width:200px;
              height:115px;
              z-index:2;
              left: 6px;
              top: 148px;
              }
              .fdfdfd {
              border-top-width: 0px;
              border-right-width: 0px;
              border-bottom-width: 0px;
              border-left-width: 0px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
              }
              #Layer3 {position:absolute;
              width:105px;
              height:45px;
              z-index:4;
              left: 404px;
              top: 539px;
              }
              #Layer4 {
              position:absolute;
              width:72px;
              height:55px;
              z-index:5;
              left: 522px;
              top: 502px;
              background-color: #FFFFFF;
              }
              #Layer5 {
              position:absolute;
              width:72;
              height:55;
              z-index:6;
              left: 616px;
              top: 502px;
              background-color: #666666;
              }
              #Layer6 {
              position:absolute;
              width:72px;
              height:55px;
              z-index:7;
              left: 708px;
              top: 501px;
              background-color: #000033;
              }
              #Layer7 {
              position:absolute;
              width:72;
              height:55;
              z-index:8;
              left: 801px;
              top: 501px;
              background-color: #660000;
              }
              #Layer8 {
              position:absolute;
              width:223px;
              height:16px;
              z-index:9;
              left: 522px;
              top: 482px;
              }
              -->
              </style>
              </HEAD>

              <BODY OnLoad="NETQUOTEVAR:ONLOAD">

              <div id="Layer4"><a href="CUSTOMVAR:STRAP1" target="_blank"><img src="CUSTOMVAR:STRAPTHUMB1" alt="" name="strap" width="72" height="55" border="0"></a></div>
              <div id="Layer3"><a href="javascript:history.go(-1)"><img src="backarrow.gif" alt="back" width="70" height="24" border="0" class="brr"></a></div>
              <table width="950" height="520" border="0" cellpadding="0" cellspacing="0">
              <tr>
              <td width="175" align="left" valign="top">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>

              <td colspan="2"><a href="NETQUOTEVAR:NAVBCARTLINK" target="NETQUOTEVAR:NAVBCARTTARGET"></a><a href="NETQUOTEVAR:NAVBCHECKOUTLINK" target="NETQUOTEVAR:NAVBCHECKOUTTARGET"></a><a href="NETQUOTEVAR:NAVBSEARCHLINK" target="NETQUOTEVAR:NAVBSEARCHTARGET"></a><a href="NETQUOTEVAR:NAVBINFOLINK" target="NETQUOTEVAR:NAVBINFOTARGET"></a></td>
              </tr>

              <tr>

              <td width="23"><a href="NETQUOTEVAR:NAVBMAILLINK" target="NETQUOTEVAR:NAVBMAILTARGET">

              <img src="spacer2.gif" alt="spacer" width="24" height="30" border="0" class="fdfdfd"></a></td>
              <td width="278"><p>
              </p>
              <div id="Layer2">
              <div align="center">
              <script type="text/javascript">
              AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','150','height','280','title','Artime Menu ','src','menu','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','wmode','transparent','movie','menu' ); //end AC code
              </script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="150" height="280" title="Artime Menu ">
              <param name="movie" value="menu.swf">
              <param name="quality" value="high">
              <param name="wmode" value="transparent">
              <embed src="menu.swf" width="150" height="280" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
              </object></noscript>
              </div>
              </div>
              <p> </p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <noscript>
              <p>&nbsp; </p>
              <p>&nbsp;</p>
              <p><br>
              </p>
              </noscript></td>
              </tr>
              </table>

              <div align="right"><!-- <p>NETQUOTEVAR:SIMPLESEARCH<br>
              <br>
              <table width="100" border="0" cellspacing="0" cellpadding="0" align="left">
              <tr>
              <td bgcolor="#666666">
              <div align="center"> <p>
              <script language="JavaScript">
              <!--
              document.write("NETQUOTEVAR:CARTCOOKIEITEMS&nbsp;" + getCartItem(3)+"<BR>");
              document.write("NETQUOTEVAR:CARTCOOKIEVALUE&nbsp;" + getCartItem(1));
              // -->
              <!--
              </script>
              </p> </div></td>
              </tr>
              </table>-->


              <!-- coupon entry begins -->
              <!-- coupon entry ends -->
              </div></td>
              <td align="center" valign="top">

              <table border="0" cellspacing="0" cellpadding="0" width="CUSTOMVAR:ACTSTDWIDTH" align="CENTER">
              <tr>

              <td valign="MIDDLE" align="LEFT" >
              <p>&nbsp;</p>
              <div align="center"></div> </td>
              </tr>
              </table>
              <div id="Layer1">
              <p>NETQUOTEVAR:FORMBEGIN
              <input type=HIDDEN name=RANDOM value="NETQUOTEVAR:RANDOM">
              NETQUOTEVAR:HIDDENFIELDS
              <!-- If customer accounts are in operation following two lines allow displaying -->
              <!-- User name and customer account name on every page -->
              <!-- NETQUOTEVAR:LOGINLINK -->
              <Actinic:NOWSERVING/>
              <Actinic:CURRACCOUNT/>
              <Actinic:LOGOUT_SIMPLE/>
              <!-- NETQUOTEVAR:HEADER -->
              <span class="actxsmall">NETQUOTEVAR:HEADERTEXT</span> </p>
              <table width="61%" border="0" cellpadding="4" cellspacing="4">
              <tr>
              <td><p>NETQUOTEVAR:BULK </p></td>
              </tr>
              </table>
              <p><span class="actxsmall">NETQUOTEVAR:FOOTERTEXT</span> NETQUOTEVAR:FORMEND </p>
              </div></td>
              </tr>
              <tr>
              <td colspan="2" valign="top" align="left"></td>
              </tr>
              <tr align="right" valign="middle">
              <td colspan="2" height="50"></td>
              </tr>
              </table>
              <div id="Layer8">
              <p>click on thumbnail for strap image </p>
              </div>
              </BODY>
              </HTML>
              <!-- Primary HTML end -->

              <!-- <td><a href="NETQUOTEVAR:NAVBCARTLINK" target="NETQUOTEVAR:NAVBCARTTARGET"></a></td>
              </tr>
              <tr>

              <td><a href="NETQUOTEVAR:NAVBCHECKOUTLINK" target="NETQUOTEVAR:NAVBCHECKOUTTARGET"></a></td>
              </tr>
              <tr>

              <td><a href="NETQUOTEVAR:NAVBSEARCHLINK" target="NETQUOTEVAR:NAVBSEARCHTARGET"></a></td>
              </tr>
              <tr>

              <td><a href="NETQUOTEVAR:NAVBINFOLINK" target="NETQUOTEVAR:NAVBINFOTARGET"></a></td> -->

              Comment


                #8
                Wahey!!

                TracyG!!! Get in there!! works perfect!!!

                Support@Techno- nice one for helping!!

                Comment

                Working...
                X