Announcement

Collapse
No announcement yet.

Use Extended Info as Remote Control

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

    Use Extended Info as Remote Control

    Similar to the 'Extended Info. Add to Cart Button' post, I have worked a simpler bit of code into the extended info page to allow you to have a link to your OWN 'Full Specification' page from the popup window.

    Clicking 'View Full Specification' from the popup will replace the products page with any page you wish.

    a) add the following code to the ExtendedInfo template
    <script language="JavaScript">
    <!--
    function loadPage(file){
    opener.location.href=(file);
    }
    //-->
    </script>
    CUSTOMVAR:MOREINFO

    b) Create a custom variable called MOREINFO

    c) Whenever you have a product that the visitor may want to view the full spec, add the MOREINFO property with the following value
    <A HREF="Javascript:loadPage('http://www.yoursite.com/yourpage.htm');window.close();">View Full Specification</A>

    The popup will disappear and your main page is changed to the page you specified.

    You have to consider where you want the Add to cart buttons to appear, as this method will leave the add to cart button ONLY on the products page. You have to return to the products page from your own web page in order to place an order!

    #2
    [I missed a bit!]

    also edit the actinicore.js file, so the ShowPopup function looks like this:

    function ShowPopUp(sUrl, nWidth, nHeight)
    {
    newWin=window.open(sUrl, 'ActPopup', 'width=' + nWidth + ',height=' + nHeight + ',scrollbars, resizable');
    if(!newWin.opener) newWin.opener=self;
    }

    Comment

    Working...
    X