Announcement

Collapse
No announcement yet.

Problems with larger image functionality

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

    Problems with larger image functionality

    I have done the following:

    To begin, you must define a function in the HTML headers of each page of the store that will control the pop-up windows. To do this, open up Act_Primary.html ('Primary' button in the 'Main' tab of Template Manager) and insert the following code somewhere within the <HEAD></HEAD> tags:
    <script language="JavaScript">
    <!--// beginning of Javascript script
    function popUp(url) {
    window.open(url, 'newwindow',
    'width=620,height=510,menubar=off,directories=off,toolbar=off');
    }
    // end of script -->
    </script>
    Now close and save this template and go into 'Advanced | Define Custom Properties'. Create a new custom property called 'URL'.
    Now open up 'Act_ProductLine.html' (or whatever Product Layout template(s) you are using) and replace
    NETQUOTEVAR:PRODUCTIMAGE
    with
    <A HREF="javascriptopUp('CUSTOMVAR:URL')">NETQUOTEVAR:PRODUCTIMAGE</A>

    And on my test server feeling.intothenet.co.uk when you click on a product image the pop up window comes up with the picture in it, but on the live server it pops up a window looking for the file in the cgi bin. I presume that this is a problem with one of the urls in the Network Setup under advanced, anyone know what is causing this?

    #2
    Are you a logged in Business customer or going to these pages after Searching (with search highlighting on)? If so these pages come via a cgi-bin script so that may be causing this problem.

    You could try putting the full address of the popup page into the URL customvar. E.g. "http://www.mysite.com/acatalog/mypopup.html" to see if it fixes this.

    If it does then you could save some typing by amending your popup JavaScript to prepend the "http://www.mysite.com/acatalog/" to the passed in parameter.

    E.g.
    Code:
    <script language="JavaScript">
    <!--// beginning of Javascript script
    function popUp(url) {
    window.open('http://www.mysite.com/acatalog' + url, 'newwindow',
    'width=620,height=510,menubar=off,directories=off,toolbar=off');
    }
    // end of script -->
    </script>
    Norman


    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X