Announcement

Collapse
No announcement yet.

Duplicate to Duplicate Link

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

    Duplicate to Duplicate Link

    I'm having problems linking my duplicates.

    On this page:
    http://www.thehoneyfarm.com.au/acata...-lip-balm.html

    I have a product called Propolis Lip Balm. If you click on the text "Propolis Lip Balm" it takes you to the correct destination (a duplicate). However if you click on the images to the left (thumbnail and "more details") then instead of being taken to the duplicate you are taken to the original product which resides in a complete different section.

    How can I fix this so that the images point to the duplicate instead of the original?

    #2
    Hi Remmo,

    this is a bug-bear of mine as well with many products and many duplicates it makes clicking on the duplicate and not the master very easy from the drop down box.

    I have noticed when you click on the drop arrow and the product list appears if you enter a space (or 2 or 3) before starting to type it will take you to a different version of the product / duplicate ... in my site I have to enter 2 spaces and then the product to get to the master!!! A pain


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      It appears that the only way around this problem is to insert a CSV in the template which contains the product duplicate link instead of the master product link.

      I thought that as duplicates have a 1! infront of the refernce number it may be as simple as inserting this infront of the NQV?

      Am I making any sense?

      Comment


        #4
        The text link on your page isn't directly generated by Actinic. You must be using a LINK or CUSTOMVAR to do this. Can you tell us what you have in your Product Template wrapped around NETQUOTEVAR:PRODUCTNAME?

        In the generated code I see
        Code:
        <a
        name="a2_21159"><A HREF = http://thehoneyfarm.com.au/cgi-bin/ss000001.pl?SECTIONID=propolislipbalm%2ehtml&NOLOGIN=1 TARGET="_self">propolis lip balm</A></a>
        Which although it works looks a little dodgy. You have a named anchor tag wrapped around an HREF anchor tag. The HREF one also has no quotes around the parameter and some extraneous spaces.
        Code:
        <a name="a2_21159">&nbsp;</a><A HREF="http://thehoneyfarm.com.au/cgi-bin/ss000001.pl?SECTIONID=propolislipbalm%2ehtml&NOLOGIN=1" TARGET="_self">propolis lip balm</A>
        Looks safer.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Norman,

          I have replaced the code as suggested - I always thought I was doing something a bit funny there just didn't know how to fix it up.

          The duplicate's code is below.


          NETQUOTEVAR:ENDSEPARATOR
          NETQUOTEVAR:PRODUCTFORMBEGIN
          <tr>
          <td colspan="3">
          <table width="100%" border="0" cellspacing="0"
          cellpadding="2">
          <tr>

          <td width="90"><div align="center"><a
          name="NETQUOTEVAR:PRODUCTANCHOR">&nbsp;</a><A HREF =http://www.thehoneyfarm.com.au/cgi-bin/ss000001.pl?PRODREF=NETQUOTEVAR:PRODUCTREFERENCE&NOLOGIN=1 TARGET="_self">
          NETQUOTEVAR:TEMPLATEENDXMLNETQUOTEVAR:PRODUCTBEGINLINKNETQUOTEVAR:PRODUCTIMAGE</A>
          </A></div></td>
          <td
          width="190" rowspan="2" align="right"><div align="left">NETQUOTEVAR:PRODUCTDESCRIPTION</div>
          NETQUOTEVAR:VARIANTS</td>
          <td align="right"
          width="40" rowspan="2"><div align="left" class="actxsmall">
          <div align="center">CUSTOMVAR:WEIGHT</div>
          </div></td>
          <td width="40" rowspan="2" align="right"><div align="center">NETQUOTEVAR:PRODUCTPRICENETQUOTEVAR:PRODUCTQUANTITYNETQUOTEVAR:CARTERRORXML</div></td>
          <td width="80" rowspan="2" align="right"valign="middle">
          <Actinic:ACTIONS>
          <div align="right">NETQUOTEVAR:VARIANTADDTOCARTBUTTON</div>
          </Actinic:ACTIONS> </td>
          </tr>
          <tr>
          <td><div align="center"><A HREF =http://www.thehoneyfarm.com.au/cgi-bin/ss000001.pl?PRODREF=NETQUOTEVAR:PRODUCTREFERENCE&NOLOGIN=1 TARGET="_self"><img src="more-info.gif" alt="more details" width="90" height="15" border="0" /></A></div></td>
          </tr>
          <tr><td colspan="5" width="415"><img src="greybackground.gif" width="100%" height="1"></td></tr>
          </table>
          </td>
          </tr>
          NETQUOTEVAR:TEMPLATEENDXML
          NETQUOTEVAR:PRODUCTFORMEND
          NETQUOTEVAR:NEXT
          As you can see there is no PRODUCTNAME I am using the advanced link function and putting the product name without a weight via the [LINK] command into the product description field.

          This link then brings you to the correct page, but when clicking on the image you get the original parent product.

          To recap how I have set things up:

          I have the master Propolis Lip Balm product listed under the Propolis Section. I then have a duplicate of this product listed under the lip balm section. As I am showing 1 product per page there is a duplicate of the duplicate sitting one level up from the product sitting in the lip balm section.

          The problem is that all links are pointing to the correct pages except the links that go via the thumbnail. Unfortunately Actinic can't seem to cope with these kinds of links.

          Comment


            #6
            Your problem is the home brewed

            <A HREF =http://www.thehoneyfarm.com.au/cgi-bin/ss000001.pl?PRODREF=NETQUOTEVAR:PRODUCTREFERENCE&NOLOGIN=1 TARGET="_self">

            Actinic uses the main product reference for NETQUOTEVAR:PRODUCTREFERENCE.

            I've no idea if Actinic will accept a duiplicate reference here. You can try replacing this with

            1!NETQUOTEVAR:PRODUCTREFERENCE

            and see what happens.

            It may be better to use

            1%21NETQUOTEVAR:PRODUCTREFERENCE

            instead as this is an escaped ! and may be safer in a query string.

            Note that 1! refers to the 1st duplicate, 2! the second, etc.

            Also I see

            NETQUOTEVAR:PRODUCTIMAGE</A>
            </A>

            That's one too many </A>.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Just checked and

              1%21NETQUOTEVAR:PRODUCTREFERENCE

              will take you to the 1st Duplicate.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Thats the bit of code I was looking for. It did work for me originally but now I get the warning:

                The specified product reference (1!159) couldn't be found.

                Am I missing something in the duplicate template? The code to the duplicate template is written below.
                NETQUOTEVAR:ENDSEPARATOR
                NETQUOTEVAR:PRODUCTFORMBEGIN
                <tr>
                <td colspan="3">
                <table width="100%" border="0" cellspacing="0"
                cellpadding="0">


                <tr>
                <td colspan="5">
                <table>
                <tr>
                <td colspan="2">
                <img src="orangebackground.gif" width="100%" height="1" /></td>
                </tr>

                <tr>
                <td colspan="2"><a name="NETQUOTEVAR:PRODUCTANCHOR" class="actregular" id="NETQUOTEVAR:PRODUCTANCHOR"><b>CUSTOMVAR:PRODUCTNAME</b></a>NETQUOTEVAR:PRODUCTREF</td>
                </tr>

                <tr>
                <td colspan="2"><img src="orangebackground.gif" width="100%" height="1" /><br />&nbsp;</td>
                </tr>
                <tr>
                <td width="250" height="250" align="CENTER" valign="middle" >NETQUOTEVAR:TEMPLATEBEGINXMLNETQUOTEVAR:PRODUCTIMAGE </td>
                <td width="140" valign="middle" class="actsmall" >NETQUOTEVAR:PRODUCTDESCRIPTION</td>
                </tr>



                </table>
                </td>
                </tr>


                <tr>

                <td colspan="5" width="415
                "><table><tr><td>CUSTOMVAR:PRODUCTDESCRIPTION2</td></tr></table></td></tr>

                <tr>
                <td colspan="4"><img src="greybackground.gif" width="100%" height="1" /></td>
                <td></td>

                </tr>
                <tr>

                <td colspan="5"><img src="spacer.gif" width="100%" height="5"></td>


                </tr>
                <tr>
                <td width="180"><a name="NETQUOTEVAR:PRODUCTANCHOR">NETQUOTEVAR:PRODUCTNAMENETQUOTEVAR:VARIANTS</a></td>
                <td align="right"
                width="60"><div align="center">NETQUOTEVAR:PRODUCTPRICE</div></td>
                <td width="60" align="right"><div align="center">Quantity:</div></td>
                <td width="40" align="right">NETQUOTEVAR:PRODUCTQUANTITY</td>
                <td width="80" align="right">NETQUOTEVAR:VARIANTADDTOCARTBUTTON</td>
                </tr>
                <tr>
                <td colspan="5"><img src="SPACER.gif" width="100%" height="5" /></td>
                </tr>
                <tr>

                <td colspan="4"><img src="greybackground.gif" width="100%" height="1" /></td>
                <td></td>

                </tr>
                <TR><TD colspan="5">CUSTOMVAR:EXTRADESCRIPTION</TD></TR>
                </table>
                </td>
                </tr>
                NETQUOTEVAR:PRODUCTFORMEND
                NETQUOTEVAR:NEXT

                Comment


                  #9
                  It's nothing to do with the Template that displays the Duplicates.

                  Perhaps the first duplicate has been deleted and you need to link to the second.

                  Just look at your own pages that have text links to duplicates and see what the URL in the status bar is. Or look at the page source.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment

                  Working...
                  X