Announcement

Collapse
No announcement yet.

Click Duplicate Product Image to go to Original Product Section Page

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

    Click Duplicate Product Image to go to Original Product Section Page

    My shop is setup so that each product has it's own section and a duplicate of each product is in a parent section that shows many products but with smaller images, less details and also laid out in a table.

    Much like this:
    Section1
    -SubSection1.1
    --Product1
    -SubSection1.2
    --Product2
    -SubSection1.3
    --Product3
    Duplicate of Product1
    Duplicate of Product2
    Duplicate of Product3

    I would like to be able to click on the product image of a duplicate to load the original product's section page. How can I do this?

    TIA

    Duncan R

    #2
    Hi,

    the way I handled is as per below and it works fine

    1) Create a custom property "SITE_URL"
    2) Assign the value to SITE_URL of "http://localhost/" (without the quotes)
    3) edit my template, in my case Act_ProductLine.html and put

    ...
    <A HREF = CUSTOMVAR:SITE_URLcgi-bin/ss000006.pl?PRODREF=NETQUOTEVAR:PRODUCTREFERENCE&NOLOGIN=1 TARGET="_self">
    NETQUOTEVAR:PRODUCTTHUMBNAILIMAGE
    </A>

    ....

    The reason I use the custom property is because it makes it easier when I upload between my local development pc (http://localhost/)and my real site(http://whatever/)

    Only issue I can think of with this approach is having to hard code the cgi script ID (in my case 6) into ss000006.pl

    Does anyody know of a variable that provides the cgi script id ?

    Perhaps other people know of more efficent way of acheiving the same result ? - if so please post as I would also like to use !!
    EternalNomad
    http://www.sharedpleasure.com
    Over 2000 items of Adult Toys, Tools, Lingerie, Books and Movies

    Comment


      #3
      Great thanks for that Mark - I'll give it a go.

      Couldn't I also include more of the path in the CustomVAR and set it to:
      "http://mysite/cgi-bin/ss000006.pl?"
      for example.

      Duncan R

      Comment


        #4
        Yes - I dont see any reason why not

        You could even "hardcode" the full path into your template file but this would means having to "mess-around" when you moved from a development site to your main site
        EternalNomad
        http://www.sharedpleasure.com
        Over 2000 items of Adult Toys, Tools, Lingerie, Books and Movies

        Comment


          #5
          Another thing......

          This works (I just hard coded to test) but I don't want my original product images to be clickable as well. Modifying the Act_ProductLine template affects these as well of course.

          Is there a way to use a different Act_ProductLine template on the originals than the duplicates?

          Duncan

          Comment


            #6
            Just select the alternate template against Product Layout on the layout tab for the original product.
            Bill
            www.egyptianwonders.co.uk
            Text directoryWorldwide Actinic(TM) shops
            BC Ness Solutions Support services, custom software
            Registered Microsoft™ Partner (ISV)
            VoIP UK: 0131 208 0605
            Located: Alexandria, EGYPT

            Comment


              #7
              Of course!
              Sometimes I forget to look at the obvious.

              Thanks Bill

              Comment

              Working...
              X