Announcement

Collapse
No announcement yet.

Hyperlinking straight to a product

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

    Hyperlinking straight to a product

    I know this has been raised before but can't seem to get this working using what's already been said.

    Basically I want to add to an email most commonly, or maybe in future a web page a hyperlink directly to a product on a page with multiple products. As far as I can make out each product has a built in anchor based on its product reference preceded with an "a" so I created a hyperlink of "http://www.seltekwarehouse.co.uk/acatalog/flammable-storage.html#aWP-892300" where flammable-storage.html is the page where the product resides and WP-892300 is the product ref.

    Perhaps I'm missing something but this link just goes to the top of the page, not the product specified. Any advice much appreciated.
    Tony Burt
    NetSecrets

    #2
    You've added an 'a' for some reason, try removing that:

    "http://www.seltekwarehouse.co.uk/acatalog/flammable-storage.html#WP-892300"

    The anchor is a hidden tag within the product layout, already added for you.

    Comment


      #3
      Hi Lee

      Somewhere in an old thread it was said an "a" should be added - <a href="widgets.html#a1234">Off we go</a>

      But if I remove the "a" it still only links to the top of the page, not the product.
      Tony Burt
      NetSecrets

      Comment


        #4
        Here's an example link to that product:
        Code:
        http://www.seltekwarehouse.co.uk/acatalog/flammable-storage.html#aWP_2d892300
        Note that (in your case at least) you do need the preceeding 'a'. Also note the '2d' in the middle which means a dash.

        Use Firefox with Firebug and you will see all the underlying code easily.
        Attached Files

        Comment


          #5
          My apologies Tony, i think i gave you bum information. It appears that the product ref when used in an anchor does have to be proceeded by an 'a' in actinic. I have no idea why to be honest, in normal html i've never used anything but the name of the anchor, i can only presume it is something to do with the way in which actinic works.

          PS - if you add a product to your cart and then click the link actually in the cart to go back to the product, you can see how the link is formed in the address bar. It does always seem to add an 'a'.

          Comment


            #6
            The 'a' is added into the design by default but can easily be removed. Often wondered why is was added myself.

            Comment


              #7
              Strange one, maybe it's to ensure that all anchors start with a letter or something like that.

              Comment


                #8
                In a nutshell, the 'a' is needed because Actinic adds it to the Anchor.

                In this case, the anchor appears to be

                <a name="aWP_2d892300">

                which is the reason why

                http://www.seltekwarehouse.co.uk/aca...tml#aWP-892300

                doesn't find it but

                http://www.seltekwarehouse.co.uk/aca...l#aWP_2d892300

                does.

                It would appear Actinic is converting the '-' to '_2d'.

                Mike

                PS. Oops. Re-reading I see Duncan has already explained this.
                -----------------------------------------

                First Tackle - Fly Fishing and Game Angling

                -----------------------------------------

                Comment

                Working...
                X