Announcement

Collapse
No announcement yet.

Hyperlink to specific product reference

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

    #16
    A good tip with URLs if you are not already doing this, is to have them all relative, not full URLs, this way the accounts system handles them correctly and doesn't log people out, when a full coded URL is clicked.

    Comment


      #17
      Perhaps an example would help - how can relative addressing be made to allow a link within a page which will work when both logged in and out?

      Could someone who has done this (has anyone?) post some real working code? Since first posting I've found that the advanced UG for v9 actually states:-

      It is possible to take people straight to a specific product with a hyperlink of the following form:
      http://your.URL/cgi-bin/ss00000x.pl?...2345&NOLOGIN=1
      Where:
      http://your.URL/cgi-bin is the URL of your CGI-BIN
      • ss00000x.pl is the name of your search script with the 'x' replaced with your CGI ID number
      • 12345 is the product reference of your desired product.
      • &NOLOGIN=1 is an essential thing to add to the end of the URL to order to bypass the login page


      So Actinic are telling people to do something that won't work (when logged in). Do they realise this?

      Nick
      Fighting with sellerdeck on http://www.nickdobsonwines.co.uk

      Comment


        #18
        I don't use customer accounts so have never tried this, but if there is a variable to check if a customer is logged in you could wrap each of the two links in a blockif and show the relevant link only.
        Unusual Silver Jewellery
        Giftmill - Unusual Gifts
        Crystal Healing Jewellery
        Steampunk Jewellery

        Comment


          #19
          Originally posted by drounding View Post
          The script ID is not per product but is set for the site. You can check it in Actinic - Web - Network Setup - Common Settings.

          THe script ID on the wine site is 1, as you can see from here for example:
          Code:
          http://www.nickdobsonwines.co.uk/cgi-bin/mf000001.pl?ACTION=SHOWFORM
          This is just a quick thank you to Duncan for this - which worked a treat - when nobody on the Actinic help desk (I pestered them for weeks) was able to help with this "simple" request.

          On a minor point, where the script ID is 2 digits or more (mine was 65) knock off the appropriate number of zeros - e.g. for 2 digit IDs:

          Code:
          http://www.theDomain.co.uk/cgi-bin/ss0000XX.pl?PRODREF=Y&NOLOGIN=1

          Comment

          Working...
          X