Announcement

Collapse
No announcement yet.

Hard links in best sellers / new products

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

    Hard links in best sellers / new products

    Not sure if this solution has been supplied before but I have come up with a way to do this. I have edited the Mini Best Seller Layout to include the following:

    <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductLinkInfo%22%20%2f%3e%20%3d%3d%20%22%22" >
    <a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable name="ProductReference" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e" >&amp;SHOP=<actinic:variable name="ShopID" /></actinic:block>">find out more</a></p>
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductLinkInfo%22%20%2f%3e%20%21%3d%20%22%22" >
    <a href="<actinic:variable name="ProductLinkInfo" />">Find out more</a>
    </actinic:block>

    Basically what this does is to point the link to the URL specified in the Link tab on the product. In my case, we have section per product so I just put the section URL in the Link tab and removed the link from the main product layout so it's not linking back to itself.

    You could also create a variable for the product which would replace Productlinkinfo in the above and then set the URL for the best seller link from each product.

    Seems to work just fine. Blocks basically say to do the original action if the Link URL box on the product is empty or to use the HTML link if there is something in there.
    Blank DVD
    Cloth Nappies

    #2
    explored many times, my solution:

    http://community.actinic.com/showthr...=collaboration

    running here:

    http://www.skateasylum.co.uk/

    Comment


      #3
      I knew there was so code out there that you did but I thought you had said it was unstable. Must have got my wires crossed as usual. Anyway, this works well for me as it's in a format I can understand and modify to my requirements.
      Blank DVD
      Cloth Nappies

      Comment


        #4
        i did write some code to write out section lists, and more useful navigations, but thet code uses a type of recusion that aactinic does not like and bombs out.

        No recursion in this code. it works fine for me. just a bit slow for a large store.

        Comment


          #5
          Ah, OK. I already have links in the products anyway so this is a handy and quick fix for me.
          Blank DVD
          Cloth Nappies

          Comment


            #6
            Will this work for URLs that are not the sections that the product is in? ie maybe a section above.
            And the Mini Related Products?
            Only I've put the code into the Mini Related Products Layout: http://www.originaltouch.co.uk/acata...timoss_CR.html

            And put a URL into the products Advanced Link tab but it still links to the product. Does it need an extra tweak?
            Sam
            http://www.originaltouch.co.uk
            http://www.spcb.co.uk

            If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.

            Failure is the tuition you pay for success.

            Comment


              #7
              Further to last post, for anyone else, got this working myself at long last.

              Yes it does work with related products layout.

              But you need to use the Simple Link, not the Advanced Link and make sure that the link is a full URL, not relative to the website.
              Sam
              http://www.originaltouch.co.uk
              http://www.spcb.co.uk

              If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.

              Failure is the tuition you pay for success.

              Comment

              Working...
              X